To ensure our regex matches exactly the specified items, we manually create alternatives for each target string. Each alternative is an exact string match where special regex characters (like ., +, (, ), ?, :) are escaped where necessary. We then combine these alternatives into a single pattern using a non-capturing group with alternation, and anchor the pattern with ^ and $ to ensure that nothing extra is matched. This guarantees that only one of the exactly specified target strings is matched and nothing else.