nRF Connect for VSCode Flash task do not work

Hi,

I'm currently attempting to test the custom flash task I discovered at this location: http://nrfconnect.github.io/vscode-nrf-connect/guides/build_bind_tasks.html#examples-of-custom-task-types.

My tasks.json looks like this:

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "nrf-connect-flash",
            "config": "${workspaceFolder}\\build\\nrf-52840-debug",
            "snr": "683922377",
            "erase": false,
            "problemMatcher": [],
            "label": "nRF Connect"
        }
    ]
}

But the vscode gives me this error:

Error: The nrf-connect-flash task detection didn't contribute a task for the following configuration:
{
    "type": "nrf-connect-flash",
    "config": "${workspaceFolder}\\build\\nrf-52840-debug",
    "snr": "683922377",
    "erase": false,
    "problemMatcher": [],
    "label": "nRF Connect"
}
The task will be ignored.

Could you assist me in identifying the mistakes I've made?

My version of vscode extension is v2023.4.179.

Related