Can’t access the internet even though I am connected to a working wifi

My pc suddenly decided to block all internet traffic . I tried restarting the pc . I think it must be some security software but I don’t know where to start. I can’t even ping 8.8.8.8 .

I am connected to my WiFi which I know is working as other devices are using it.

I tried flushing the DNS cache and doing a network reset.

The only warning I get from Windows is that “There’s a problem with the DNS cache”

I can ping 127.0.0.1 but pinging the default gateway fails.

I am running windows 11 enterprise 24H2