import re


def _get_badchars(data: str) -> str:
    """Returns the badchars contained in a string."""
    regex = r"[^a-zA-Z0-9\s]"
    match = re.findall(regex, data)
    match = sorted(set(match))  # unique and sort
    return "".join(match)