I also used yabai for this purpose but found a solution that doesn’t require messing with security: https://www.boronine.com/2025/02/09/Instant-Workspace-Switch...
Amen.
I tried switching to Aerospace, but it would become visibly laggy when connected to an external display and switching a screen that had Zed open for some reason. So I've switched back to Yabai :(