Update flask requirement from <=3.1.1,>=3.0 to >=3.0,<=3.1.2 (#7846)
* Update flask requirement from <=3.1.1,>=3.0 to >=3.0,<=3.1.2
Updates the requirements on [flask](https://github.com/pallets/flask) to permit the latest version.
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/flask/compare/3.0.0...3.1.2)