Structural Regular Expressions were first described by unique genius Rob Pike when he found the line-oriented nature of usual regular expressions limiting.

An interesting article on them by Getty Ritter:

https://what.happens.when.computer/2016-08-30/structural-res/

The original Rob Pike paper (PDF):

http://doc.cat-v.org/bell_labs/structural_regexps/se.pdf

what happens when computer: structural regular expressions