And yes it is specifically the Ubuntu 24.04 version of mod_wsgi; both 20.04 and 22.04 mod_wsgi work fine. Conveniently I have a very simple reproduction case, inconveniently Ubuntu bug reports famously do nothing.
Perhaps this machine will become an Ubuntu 22.04 machine instead of the planned 24.04 update.