Then the first thing to do is a platform update. E.g., via CLI → pio pkg update -g -p espressif32
.
BUT, the S3 Devkit is not the board you want to select. An ESP-WROOM-32 module has a regular ESP32 chip inside (XTensa). You should update the platform, but keep board = esp32dev
.
Do you maybe have multiple COM ports / boards attached and it selects the wrong one? See Device Manager → COM ports to see them. Use upload_port = COMx
in the platformio.ini
if needed.