Hello Jiri,
Did you actually try using the variable after that? If I try to use the config_name variable it doesn't seem to parse the variable correctly. See the below screenshots.
My External Tools view with variables
Show command line with config_name
Without config_name
Not all variables in the external tools variable list seem to be functional.