def registery_key_stix_pattern_producer(data):
    """Convert a Registry Key from TC to a STIX pattern."""
    key_name, value_name, value_type = data.get('summary').split(':')

    parts = []

    if key_name.strip():
        key_name = key_name.strip().replace('\\', '/')
        parts.append(f"windows-registry-key:key = '{key_name.strip()}'")

    if value_name.strip():
        parts.append(f"windows-registry-key:values.name = '{value_name.strip()}'")

    if value_type.strip():
        parts.append(f"windows-registry-key:values.data_type = '{value_type.strip()}'")

    return f'[{" AND ".join(parts)}]'