Zoom freezes when I stop screen sharing

I’m using the flatpak version of Zoom and everything works fine. The only issue I’m having is that when I try to stop the screen sharing, Zoom freezes completely every single time and doesn’t respond to any input.

I’m using Wayland.

A search didn’t find others reporting similar issues so I am posting here.

Any ideas?