The permalink doc doesn’t mention that permalinks need to be defined in TOML when set in the config.toml file.
Actually, the config.toml file is not mentioned at all on that page (it should be, I think), and the example from the doc page is the same invalid TOML format that 22decembre tried to use.