I have a custom board where STM32 is used as bridge from USB to serial for programming the ESP32 chip.
Tool-esptoolpy v2.3.1 which is installed by Platformio can’t connect to ESP32, but the version v2.4.1 from the tip of master branch in esptool git repo connects.