For example, I am trying to match the following strings
mmmutex
mmuuuTTex
Muuuuuutex
muteeeeeEexxxx
mMutexXxxx
....and many similar strings.
They must have m, u, t, e and x in order with one or more characters repeating consecutively 3 and more times.
I found the following solution
^(?i).*([mutex])\\1{2}[mutex]*$
but it also matches
xxxxxx
mmmmmm
ttttt
eeeee
uuuuuuuuu
and many more similar like above which I don't want. See this demo on regex101.com.