Suppose you want to match the following strings with one template: Catherine de Medicis, Charles de Medicis, Charles de Bourbon, Catherine de Bourbon.
Here's the first version of the template:
template = "Charles|Catherine de Medicis|Bourbon"
What is the best way to insert parentheses to make the template work correctly?