Validates whether a string is a valid UUIDv4.
static bool isValidUUIDv4(String uuid) { /// Check if the input string matches the pattern return _pattern.hasMatch(uuid); }