Validate UUID format and detect version. Check if a string is a valid UUID and identify its version (v1-v7).