Can you create a f-string where you use a integer variable for the digits of padding?
>>> s = 8 >>> f"{\'test\':s}"