I fixed it. Just enable your Pylance and run it again. As simple as that. Thanks to everyone who tried to help me.