Pipewire screensharing broken in latest obs-studio update

When you try to capture your screen in OBS Studio the latest update crashes with this error:

warning: [pipewire] Failed to start screencast, denied or cancelled by user
info: PipeWire initialized
info: [pipewire] Screencast session created
info: [pipewire] Asking for desktop
info: [pipewire] desktop selected, setting up screencast
[E] pw.loop [loop.c:86 pw_loop_new()] 0x55a22d23b040: can't make support.system handle: No such file or directory
Segmentation fault (core dumped)

This functionality worked until the most recent update a few days ago.

I made a GitHub issue on the OBS Studio GitHub and the devs said it was likely an issue with the snap.