In the end i had to restart my laptop and after rebooting and reopen visual studio code the cuda appears. I can’r really say what solves the issue as I really tried several thinks like reinstalling torch, removing cuda toolkit etc.
most likely the command with parameters --upgrade --force-reinstall solved the issue plus restarting the entire system