my_string = 'Hello {name}, my name is {my_name}!'
to_replace = {'search_for': 'replace_with', 'name': 'minerz029'}
for search_str in to_replace:
    my_string = my_string.replace('{' + search_str + '}', to_replace[
        search_str])
print(my_string)
How can I escape the format string?