private String sanitizeString(String str, boolean escapeBackticks) {
            String result = str.replace("\\", "\\\\").replace("\"", "\\\"");
            if (escapeBackticks) {
                result = result.replace("`", "\\`");
            }
            return result;
        }
Serialize the given JMESPath expression to a string.

@param expression JMESPath expression to serialize.
@return Returns the serialized expression.
smithy-jmespath/src/main/java/software/amazon/smithy/jmespath/ExpressionSerializer.java