def escape_strings(escapist: str) -> str:
    """Escapes strings as required for ultisnips snippets

    Escapes instances of \\, `, {, }, $

    Parameters
    ----------
    escapist: str
        A string to apply string replacement on

    Returns
    -------
    str
        The input string with all defined replacements applied
    """

    return (
        escapist.replace("\\", "\\\\")
        .replace("`", "\`")
        .replace("{", "\{")
        .replace("}", "\}")
        .replace("$", "\$")
        .replace("\"", "'")
    )