I solved the problem by creating a regex that exactly matches only one of the 12 allowed strings. I used an anchored non‑capturing group (using ^(?: … )$) with alternation for each target. All characters are literal, except that in '29.02.2024' I escaped the dot (.) so it matches a literal period. This pattern will only match one of the allowed strings exactly and nothing else.