activate virtual environment in the cmd ('python -m venv flask_venv'  ->  'source flask_venv/bin/activate') before running 'python run.py'
this instance of the venv has modules compatible with python3.9
open the front-end folder directly in vscode -- you should see Python<version> ('venv': flask_venv or smth) in the status bar at the bottom.