Validate a UUID or ULID identifier string and extract its format, version, variant, and canonical representation.