def METHOD_NAME(s: str, expressions: List[str] = []) -> str:
    """Given string s and a list of expressions, substitute each %s
    in the string with {exp}.
    Arguments:
        s (str): The string literal.
        expressions (Optional[List[str]]): A list of expressions.
    """
    s = s.replace('\"', '\\\"')
    for exp in expressions:
        # some expressions will contain references to "$resp"
        exp = coerce_response_name(exp)
        s = s.replace("%s", f"{{{exp}}}", 1)
    return s