def extract_extension_attributes(schema: dict) -> dict:
    """Extract custom 'x-*' attributes from schema dictionary

    Args:
        schema (dict): Schema dictionary

    Returns:
        dict: Dictionary with parsed attributes w/o 'x-' prefix
    """
    extension_key_format = 'x-'

    extensions_dict: dict = {
        key.replace(extension_key_format, '').replace('-', '_'): value
        for key, value in schema.items()
        if key.startswith(extension_key_format)
    }

    return extensions_dict