human
Python split string based on regex
assistant
Here is some code to split string `input` at every space followed by an upper-case letter

re.split('[ ](?=[A-Z])', input)

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