The lexer (!) cannot know which keywords are regular expression types, so this would amount to grabbing every currently unused #<keyword>(…)
syntax for regular expressions. I think we’d like to keep that syntax available for other uses.
(This is not an argument against #regex
, just against the idea of allowing custom type names in place of regex
.)