This pattern is invalid and improper for uuid generation. The version and variant bits are more constrained than that. See this RFC-compliant implementation, which I authored a few years back for an example:

https://github.com/UnionOfRAD/lithium/blob/master/util/String.php#L55

https://github.com/UnionOfRAD/lithium/blob/master/tests/cases/util/StringTest.php#L14