I have a Sonos Beam, Sub mini, and 2 One SL's. eARC to Beam.
I'm using an 8 port 4K IOGEAR switch.
I have a PS5, XBOX-X, Switch, Raspberry Pi (RetroPie), Analogue Dock, Apple TV all working great with surround and 4K on the devices that support it. The hardest part was finding decent HDMI cables that can handle the bandwidth.