Use D7 as a GPIO output on ESP32C3

I want to use the D7 pin (RX) as a GPIO output. How do I disconnect it from the UART function.

Solved:
Had to use the GPIO number 20, rather than D7 in the definitions and controls.

Would like to understand why if anyone cares to reply as I find the An/Dn vs GPIOn definition use seems to be somewhat random.

it is random… based on the chip manufacturer and chip version chip pins v/s board pins… but yes very confusing

also has to do with the code, which sometimes abreviates or creates variables or alias which does background conversion