To ensure the regex matches ONLY the provided target items and nothing else, I built a pattern using alternation that exactly matches each target item. I used escaping for all special regex characters including dots, plus, parentheses, slashes, and question marks. I wrapped the alternation in non-capturing group and anchored the pattern with ^ and $. Each target is matched exactly without any additional characters allowed. This complies with the rules that the regex must match all target items and not match anything else.