def METHOD_NAME(self, schema_key: str) -> str:
    schema_key_pattern = re.compile(SCHEMA_KEY_PATTERN_REGEX)
    schema_key_match = schema_key_pattern.match(schema_key)
    if not schema_key_match:
        raise Exception(f'{schema_key} does not match the schema key pattern')
    cluster_key = schema_key_match.group(1)
    return cluster_key