I’ve had the same issue with my Pico W, I think it’s an issue with the latest nightly build of micropython.
It’s also been mentioned here: PiicoDev with the Pico-W - #6 by James46717
I think if you go back a couple of versions of micropython it will work, otherwise hopefully the issue gets ironed out soon!