list(string.Formatter().parse(s))
field_names = [name for text, name, spec, conv in string.Formatter().parse(s)]
field_names
How can I find all placeholders for str.format in a python string using a regex?