public static String escapeString(String hexStr) {
        Matcher matcher = HEX_PATTERN.matcher(hexStr);
        StringBuffer buf = new StringBuffer();
        while (matcher.find()) {
            matcher.appendReplacement(buf, String.format("%s", (char) Integer.parseInt(matcher.group(1))));
        }
        matcher.appendTail(buf);

        return buf.toString();
    }
A utility used to parse a string according to the given hexadecimal escape sequence.
<p/>
Example input: ""hi\\x33hi\\x44hello"" , where \x33 is '!', \x44 is ','
Example output: "hi!hi,hello"

@param hexStr hex string before parsing
@return the parsed string
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/doris/src/main/java/org/apache/inlong/sort/doris/util/DorisParseUtils.java