We've fixed the Flask library version to 2.2.2 but when pip resolves requirements on Ubuntu 22.04 we get werkzeug 3.0.0 which is incompatible with Flask 2.x.
Using werkzeug 2.2.3 fixes the problem (the final Flask 2.2 compatible version.)
https://flask.palletsprojects.com/en/3.0.x/changes/
https://werkzeug.palletsprojects.com/en/3.0.x/changes/
As a side note, Flask 3 and werkzeug 2.3 makes some major API changes, including deprecating werkzeug.urls (need to use urllib instead) and dropping support for Python 3.7.