human
using regular expression to split string in python
assistant
Here is some code to use regular expression '((\\d)(?:[()]*\\2*[()]*)*)' to split string `s`

[i[0] for i in re.findall('((\\d)(?:[()]*\\2*[()]*)*)', s)]

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