After trying the I2C with pins 21 and 22 as suggested by Liam, if that still doesn’t work you might want to try going back to MicroPython v1.18.
I know that the latest builds are causing I2C issues on the Pico W and it might also be affecting ESP32s?