A leftover dependency on Python 2.7

Platformio, using Visual Studio, trying to start a debugging session for an ESP32-S3 connected to ESP-DBG:

undefined{$HOME}.platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32s3-elf-gdb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory

This is using Debian 13 Trixie. Yes, python2.7 is gone and can’t be installed. I don’t know who would/could rebuild gdb (presumably this was built by Espressif). I’d rather not have to install an older Debian. Does this work on current Raspberry Pi OS, I wonder (also Debian 13 Trixie)?

When you use PIOArduino as your platform, you get a newer Arduino-ESP32 core (3.x) and the newer toolchain version, which should not depend on Python 2.7 anymore.