import re
text = "This is a {string} with {words} wrapped in {curly} brackets."
# Regex pattern to match words inside curly brackets
pattern = r'\{(.*?)\}'
# Find all matches
matches = re.findall(pattern, text)
print(matches)
'''
run:
['string', 'words', 'curly']
'''