Build, test, and debug regular expressions
This regex matches Python string formatting placeholders, capturing the key or variable name. It supports both `.format()` style (e.g., `{name}`) and printf-style formatting (e.g., `%(name)s`). It is useful for extracting or validating substitution arguments within Python strings.