This was solved with a motherboard replacement.
Greetings, Three days ago, I used the USB C port to transfer a file to an external SSD. The latter refused to eject after completion, so I disconnected the SSD anyway, when trying to reconnect it, it did not respond as the PC's USB Hub froze, there's power however. I uninstalled the USB Hub in Device manager, rebooted and did not check if it works (this happened a number of times before and always solved it this way) I must mention that I don't use the port heavily (like once every 3-4 days), and I always remove the connector gently. Today I needed the external SSD, I was surprised that there was no power, I double checked Device manager and all was looking fine. Rebooted the pc still no power received by the SSD, reset the bios, still no power. I moved the cable a little checking if it's a bad contact between the cable and port, now in certain positions there's power, but not for long, it disconnects again. I used another USB C cable, and an adapter, same, no power (all these accessories work fine on a  different computer). I disassembled the pc and checked the port if it has disconnected pins but all looked fine, cleaned it and assembled the laptop. Now after reboot, it was functioning a little better, but with the same symptoms. Now, there's no power at all even when moving the cable a bit in any direction. I downloaded latest bios and reflashed it, still not working at all. My 1 year warranty expired on January 26, 2022.
Inspiron 7506, USB-C port stopped working