OBS can use Pipewire for the mic and desktop sound inputs, but it is not yet packaged on Flathub.

Here is how to add it manually.