The ESP32 has 2 ports. portA and portB. With the level of experience you have do not use port B, GPIO_NUM33+ as digital inputs. Instead use portA pins, GPIO_NUM0 to GPIO_NUM32.
You can program the ESP32 portB pins to act like portA pins by using the RTC_GPIO API with a ESP32 model S.
Thanks for your answer
but I am using GPIO_NUM 0 - GPIO_NUM 32 pin as output.
Is it possible to isolate the pins on port A from each other with software?