from typing import List
import re


def find_malformed_pack_id(error_message: str) -> List:
    """
    Find the pack ID from the installation error message.
    Args:
        error_message (str): The error message of the failed installation pack.

    Returns: Pack_id (str)

    """
    malformed_pack_pattern = re.compile(r'invalid version [0-9.]+ for pack with ID ([\w_-]+)')
    malformed_pack_id = malformed_pack_pattern.findall(str(error_message))
    if malformed_pack_id:
        return malformed_pack_id
    else:
        return []