import string


def remove_invalid_punctuation(s: str) -> str:
    """Removes punctuation invalid by Lex intent rules, specifically any
    punctuation except apostrophes, underscores, and hyphens.

    Args:
        s: any string, usually name of intent.

    Returns:
        The input string without invalid punctuation.
    """
    # Create string of invalid punctuation
    invalid_punctuation = ''.join(
        [ch for ch in string.punctuation if ch not in '-_\''])
    # Remove punctuation from string
    s = s.translate(s.maketrans('', '', invalid_punctuation))
    s = s.strip()
    return s