Shameless self-plug of my own expression language supporting multiple types: https://github.com/AlexErrant/Pentive/blob/main/shared-dom/s...
It's a Lezer grammar using the Github search syntax style. Currently undocumented, but the autocomplete/syntax highlighting (thanks to Lezer) is pretty good. It can handle search strings like this:
created<2024-09-24 foo -bar spider-man "wildcard*" ```literal"'`quotes``` (a b "quoted string") (c OR d OR `lit'eral`) -(x y OR z) (tag:mytag,'your tag') state:normal (arbitrary (nesting (edited<2024-09-23 OR created=2024-09-17))) /regex/si due=true tagCount=0 field:"user input field name":/lol regex/ui