Removes a rule.
rule
void removeRule(String key, Matcher rule) { if (rules.containsKey(key)) { rules[key]?.remove(rule); } }