
Update `ImageName` and `ImageReference` to use distinct regex patterns to parse specific parts of the value. Prior to this commit a single regex pattern was used which could hang given certain input strings. Fixes gh-23115
Update `ImageName` and `ImageReference` to use distinct regex patterns to parse specific parts of the value. Prior to this commit a single regex pattern was used which could hang given certain input strings. Fixes gh-23115