Found out the issue. I had excluded env folder in .cursorignore After removing it, working as expected.
env