I'm maybe missing something here, but this is my take on things.
- Connect TV to Soundbar (although you've not mentioned how this is connected) - just seen you said it's connected by Bluetooth
- Connect PS5 to TV via HDMI
As long as the PS5 is connected to TV via HDMI, then it will pass video and audio through.