If your paths have uppercase (e.g., USA, EN), it won’t match. ... Dialog Path Context: In a page properties dialog, the path might include /jcr:content (e.g., /content/abcd/efgh/xyz/usa/en/jcr:content), and your regex doesn’t account for this optional suffix.