human
Split string into strings of repeating elements
assistant
Here is some code to split string `s` into strings of repeating elements

print([a for a, b in re.findall('((\\w)\\2*)', s)])

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.