Unfortunately even before anyone started talking about "semantic web" or whatever, substring-match was declining in utility due to spam, so a substring-matcher was only as useful as it's ranking algorithm. So some cleverness in ranking is necessary, but when ranking becomes too clever, or irrelevant due to the arms race with spam, it's an almost inevitable slide from necessary rankers to mediators.
Since all the search/spam arms race is pretty much played out with giants like twitter/google anyway at this point, it is kind of hard to understand why we can't get and keep a separate and truly basic internet search engine that just works. I don't have a handy example, but in my experience even DDG & friends seem to routinely fail the "exact substring match" test for unusual phrases that I know I read verbatim last week.
What I (and I think others) really want is just substring-match tool plus a very minimal amount of extra cleverness for basic stuff like spelling variations, some fuzzing for dates/digits, directly adjacent stuff according to a simple thesaurus. Not my area of expertise, but I would guess that there's a combination of problems that prevent this tool from existing.
a) Other search companies are all trying to do fancy-but-fuzzy "semantic distance" searches to emulate Google
b) It's still true in 2023 that just keeping an up to date index is a super hard problem no matter how many crawlers are in your army
c) Despite bots everywhere, the deeper web in social-media is just too login-walled for the rule-abiding crawlers to deal with
d) There's just no money in do-what-i-say-not-what-i-mean search tools
These days I use ChatGPT though.
I usually get non-working code snippets that pass the wrong parameters.
"site:docs.python.org/3/ term" gets much better results. (You have to add the site: qualifier, due to SEO it's no longer just enough to say "Python docs". Hence "If I wanted the docs, I would get the docs." is not as trivial to do as you suggest. Things actually went beyond annoying to downright dangerous when searches for "Python 3.10 <topic>" were drowned out by older e.g. (3.6-3.8) version SEO stuff, instead of the latest Python docs.)
Queries like "awk by example" or "egrep by example" or "jq by example" seem to hit the sweetspot between completeness and working example: they give you third-party non-commercial unaffiliated expert bloggers not stuffed with upsell links to a bootcamp. Just pure information sites.
Having mentioned all this, now I've probably inadvertently cursed those sites...