Solution 1:
You can simply exclude the braces from the "contained string" with a character class:
strings = re.findall(r'\{\{[^{}]*\}\}', string)
You can simply exclude the braces from the "contained string" with a character class:
strings = re.findall(r'\{\{[^{}]*\}\}', string)