human
Regex for getting all digits in a string after a character
assistant
Here is some code to get all digits in a string `s` after a '[' character

re.findall('\\d+(?=[^[]+$)', s)

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