Great work, but I've come to disagree with text encoded regular expressions (and that's coming from a Perl Groupie).
Long story short, I think we should replace string based regular expressions with idiomatic Swift, whether that be as suggested below or Decodable, result builders, or Scanner (but for arbitrary element types).