Web programming seems like a perfect example of an area where you wouldn't want to trust inputs. Though with templates, usually the format strings are not something the end user has control over, so you should be ok in most cases. It can still be easy to go wrong though, such as the following C code:
printf(userInputtedString); // Warning! Security risk, don't do this!
The above is actually a security risk, which allows the user to read and display arbitrary memory locations. The proper way is:
printf("%s", userInputtedString);
That way the user input won't be scanned for formatting codes.
For Python, how would you go about creating a dynamic f-string? I assume for language translations, you'd want the f-strings to be dynamic. I'm also curious if there are access rules, or ways to restrict what f-strings may read.
database_password = 'someSuper_secretStr1ng'
username = get_username()
print(f'Welcome {database_password}! ;)')