Custom intent not working

Not sure what I’m doing wrong.

In my configuration.yaml, I’ve setup this intent script:

intent_script:
  Lock:
    action:
      service: "lock.lock"
      data:
        entity_id: "{{ lock }}"
    speech:
      text: "{{ lock }} locked"

In my config/custom_sentences/en/lock.yaml file, I’ve added this:

language: "en"
intents:
  Lock:
    data:
      - sentences:
          - "lock [the] {lock}"

lists:
  lock:
    values:
      - in: "front door"
        out: "lock.front_door"

After I restart my YAML configuration, when I run the command lock the front door, I get this:

intent:
  name: HassTurnOn
slots:
  name: Front Door
details:
  name:
    name: name
    value: Front Door
    text: front door
targets:
  lock.front_door:
    matched: true

The intent is not correct, and the Assist feature says: Unexpected error during intent recognition