We solved this by matching the entire string exactly with anchors (^ and $) and using a non‐capturing group (?:…) to list alternative literals. Each target item is included in the alternation with proper escaping of all regex metacharacters (e.g. ., +, parentheses) so that each literal string is matched exactly and nothing else. This way the pattern matches only one of the 13 specified target items and no near misses.