In my case this happened only due to venv, going to Settings > Project: > Project Structure and marking the venv folder as Excluded did the trick.
Settings > Project: > Project Structure
venv
Excluded