Pattern → replacement pairs. The Pattern may be a RegExp. The first matching entry wins.
final List<(Pattern, String)> patterns;