this says more about the decline of Google than anything else - first half of every page return is ads, and the rest is hit or miss in terms of relevance. Ads + SEO has ruined search, people Google now for cross referencing rather than discovery
Have you tried Duck Duck Go? I’ve been using that for years.
If you find the quality of ddg results lacking, I know I did, they are basically just a bing wrapper after all, then give Kagi a shot. It's a subscription service search engine, but in my opinion it's more than worth the cost, especially for programming queries