There are now about 10 threads in this forum about the very same thing… Yes, PlatformIO is behind in the used Arduino-ESP32 version and has official support for it, as per Support for the latest Arduino v2.0 · Issue #619 · platformio/platform-espressif32 · GitHub.
There is a workaround with user-written modifications for the platform here.
[env:esp32dev]
board = esp32-c3-devkitm-1
framework = arduino
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.1/platform-tasmota-espressif32-2.0.2.1.zip