フォーマット済み文字列リテラル
Pythonのf-string
変換 '!s' は str() を、 '!r' は repr() を、そして '!a' は ascii() を呼び出します。
These nested fields may include their own conversion fields and format specifiers,
The format specifier mini-language is the same as that used by the str.format() method.
参照先
また関連する文字列フォーマットの仕組みを使っている str.format() も参照してください。