It sounds like the resistor to ground is either open or a very high value in regards to the one connected to +5. If you are off a pin an powering with an external power supply about 12V you are connected to Vin not +5.
I played with it a bit. Sure seems like a WokWe thing. If you remove the wire between the resistors the reading is 0. Connect back to voltage divider, 1023. I tried other inputs and resistor values, too, It's like the 1K to ground is not even there. And all the connections seem good.
Wokwi only simulates the digital signals.
For the simulation of a analog circuit, you can try Tinkercad.
There is a potentiometer and there are analog modules, but they use a trick. The analog value is send directly into the processor. A circuit with resistors can not do that.
A ESP32 in Wokwi can connect to the internet, to a server in the real world.
Wokwi also simulates the Raspberry Pi Pico and can use Mbed (Raspberry Pi Pico) and FreeRTOS (ESP32) and has different build environments, such a MicroPython and Rust.
But not those two resistors.