Use Uuid.parseOrNull instead
import kotlin.uuid.Uuid
Uuid.parseOrNull(this)
Convert this String to a Uuid, or returns null if this is a malformed Uuid.