def parentheses_to_snake(x):
    """

    Convert a string formatted as
    "{a} ({b})" to "{a}_{b}"

    Args:
        x: input string

    Returns:
        Formatted string

    """

    x_split = x.split(" (")
    return f"{x_split[0]}_{x_split[1][:-1]}"