human
how to turn a string of letters embedded in squared brackets into embedded lists
assistant
Here is some code to convert a string `a` of letters embedded in squared brackets into embedded lists

[i.split() for i in re.findall('\\[([^\\[\\]]+)\\]', a)]

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