import re


def sanitize_query(query):
    """Remove special characters from a given query.

    Args:
        query:
            str: String to sanitize
    Returns:
        A sanitized string without special characters.
    """
    return re.sub(r"[^a-zA-Z0-9_]+", " ", query)