import re


def escape_sql_string(string: str) -> str:
    """
    Escapes single quotes and backslashes with a backslash and wraps everything between single quotes.
    """
    escaped_identifier = re.sub(r"(['\\])", r"\\\1", string)
    return f"'{escaped_identifier}'"