This can be found in the Arch Linux AUR:
https://metacpan.org/module/Regexp-Grammars
The Regexp::Grammars module is "Perl/CPAN Module Regexp::Grammars - Add grammatical parsing features to Perl regexes".
It can be found on CPAN:
https://metacpan.org/release/Regexp-Grammars