Reassiging the bug. Upstream has already fixed this in in 2.3.5, by the way: https://github.com/pallets/werkzeug/issues/2704
I can see that 3.0.1 is currently in experimental, but it would be enough to upgrade to the latest 2.x to fix this issue.
Please push a new python-werkzeug release ASAP. Thank you!