Given a template/formatting string "{foo}_{bar}", how can I programmatically extract the required formatting keys ["foo", &quo
"{foo}_{bar}"
["foo", &quo