import flask could not be resolved from source pylance
Firstly, create a virtual environment on your terminal. Then install Flask by running pip install flask. After installing, press CTRL+SHIFT+P. Search for Python Interpreter. Select your virtual environment. The problem will be fixed. I have also faced the same issue, but I resolved it by following this procedure.