intent: how to turn a string of letters embedded in squared brackets into embedded lists
rewritten_intent: convert a string `a` of letters embedded in squared brackets into embedded lists
snippet: [i.split() for i in re.findall('\\[([^\\[\\]]+)\\]', a)]