The Python console acts as a Flask console when flask is enabled.
Flask integration is enabled by default in the Professional edition. If you need to disable Flask integration (for example, to ignore Flask routes or to suppress generating new Flask Run/Debug configurations), deselect the corresponding checkbox in the Languages & Frameworks | Flask dialog window in project Preferences/Settings.