Regex matching with backreferences is NP-hard.
- https://perl.plover.com/NPC/NPC-3SAT.html
- https://perl.plover.com/NPC/NPC-3COL.html