import re


def remove_pii_email(text: str, replacement: str = '--EMAIL--') -> str:
    """
    Pass a string and return the text string with email numbers removed

    Parameters
    ----------
    text : str
        The text to replace email numbers in
    replacement : str
        The text to replace email numbers with

    Returns
    -------
    replacement_text: str
        A text string with the email numbers removed and
        replaced with specified text

    Example
    -------
    text_with_email = "I can be reached at human_bean@me.com"

    print(remove_pii_email(text_with_email))

    > I can be reached at --EMAIL--
    """
    email_regex_pattern = re.compile(
        r"(?:mailto:)?"
        r"(?:^|(?<=[^\w@.)]))([\w+-](\.(?!\.))?)*?[\w+-]@(?:\w-?)*?\w+(\.([a-z]{2,})){1,3}"
        r"(?:$|(?=\b))",
        flags=re.UNICODE | re.IGNORECASE)

    replacement_text = re.sub(email_regex_pattern, replacement, text)
    return replacement_text