I think what you’re suggesting already exists. Take a look at SearXNG: https://www.privacyguides.org/en/search-engines/#searxng
Is there an explanation for stupid of how SearXNG works? I tried it for a while after getting too frustrated with the Google enshittification, but couldn't get results really.