I forgot to mention that I have restarted my router, but it didn't work. All devices in my house don't have this problem.
Websites which my pixel 7 can access/load: google.com, instagram.com, wikipedia.org, grapheneos.org, linkedin.com
Websites which my pixel 7 can't access/load: reddit.com. tiktok.com, amazon.com, duckduckgo.com, uber.com
Those are a few examples.
I literally have no idea what could be causing this.