I’ve my werkzeug dependency at 2.1.2
, maybe it’s worth a try upgrading it since it’s known that pallet dependencies gave some issues, as discussed on Howto deal with Pallets Projects dependencies
You could try also to downgrade it to 2.0.*
since it should be supported if I’m correct.
If that doesn’t solve your issue I’ve no idea