The is apparently a software serial for the ESP32, never used it myself, never needed to, the ESP32 has additional hardware serial ports.
You will find the details with a Google search on;
'software serial for ESP32'
Your trying to use the software serial for the AVR processors, thats not going to work on an ESP32.