This matches only when a character if followed by itself at least 2+ extra times, so it does not change the 'll' because there is only 2 of them

//var %pattern /(.)\1{2,}/g | echo -a $regsubex(foo,heeeellooo hooooooowwwwww areeeee yooooou,%pattern,\1)