Replace {extension} placeholder on key option with file extension