Good code using regexes often has a comment giving an example of a typical string that it matches.
Could this be a first class language feature? It's a great pattern.
There are docs resources like https://diataxis.fr/ that categorise documents based on format and intended audience.
They don't say where you should start, or what order you should write docs.
I'm currently thinking README > reference > tutorial > how-tos. Agree/disagree?