Use Uuid.parseOrNull(spec) != null instead
import kotlin.uuid.Uuid
this.parseOrNull(spec) != null
Check the spec string to conform to Uuid
true if the spec string is a Uuid string
true