Uing the fllowing pins with a button with an incorporated led?

Look at a pinout diagram for ESP32. If those other pins are marked as GPIO pins like pin 21 then it should be ok.

When connecting a button and led to the same pin, if the led remains lit for some time, it will not be possible to read the pin to detect if the button is still pressed or has been pressed again. However, by changing the pin mode back to input, reading the pin and then immediately changing it back to output again, any flickering in the led should not be too noticeable.

@LarryD are resistors R7-12 necessary? Also why are R1-6 different values? Some of those values seem a little too high for led current limiting.