Port:COM4(ESP32-S3-BOX)

I'm using an Arduino uno r4 wifi board and i selected a board called esp32 s3 dev module. Ever since I uploaded a sketch like this, the IDE doesn't recognise my board's original Communication port only the ESP32-S3-BOX port.

The problem is that I can't upload anything to my board anymore as the com port it sees is not right and I can't seem to change it.

Can't help you but your topic has been moved to a more suitable location on the forum. Please read the sticky topics in Uncategorized - Arduino Forum.

Thank you!

So to clarify: I solved the problem but I'm gonna write the solution in case someone has the same thing. It turns out i erased the flash memory and my r4 Wifi was being recognised as an ESP32-S3. I had to follow these instructions to fully reset my board and now it works: