locale_get_region does no validation of whether the region exists, but just extracts the text that looks like it can be the region part of the locale, and formats it as uppercase.
It doesn't even have to be a 2-character code, but can be an invalid 3-character one.