[SPARK-57932][SQL] Fix regexp_instr and regexp_replace returning wrong results for supplementary characters