Can I use a voltage regulator to bring high voltage down to 3.3V GPIO input for ESP32?
That would still pull up to 5V via the 10k resistor. Simply use a transistor, it will be cheaper than regulator and caps. Pushbutton would drive the transistor and the transistor would drive the input pin.