Nvidia-smi says no devices found

A bit of context:
One fine day, my RTX 3050 stopped appearing in windows task manager and then I did everything I could get my hands on to get it working nothing again. I even talked to NVIDIA support team and even after trying to do everything they said ,nothing improved the situation and they reached to the conclusion that it was window’s OS fault but I was not very convinced so I downloaded and installed Ubuntu on my PC (dual boot config.) to check if my Nvidia gpu would work. After installing nvidia drivers suggested by Nvidia website , nvidia-smi still says “no devices found”.

If anybody wants to look the windows chat, reference is "My computer does not detect the nvidia rtx 3050 mobile [Incident: 240729-000163] "

(secure boot is already off)