Fix wrong location issue in heregex interpolation