The code in python 3.9.1
print( "{{{{{0}}}}}".format("test") ) # output:{{test}} <
print( "{{{{{0}}}}}".format("test") ) # output:{{test}}