How to use value_template to extract data from the sensors command

I put in the line like below

      value_template: '{% set cut = value.split('nvme-pci-0100')[1] %} 
                       {{ (cut|regex_findall("Composite:\s*\+?(\-?[\d\.]*)°"))[0] }}'

& it doesn’t allow to put in configuration.yaml, come out error

bad indentation of a mapping entry (532:50)
 532 |  ... e: '{% set cut = value.split('nvme-pci-0100')[1] %} 
------------------------------------------^
value_template: >
      {% set cut = value.split('nvme-pci-0100')[1] %} 
      {{ (cut|regex_findall("Composite:\s*\+?(\-?[\d\.]*)°"))[0] }}

just try, seem like same error

This entity is no longer being provided by the command_line integration. If the entity is no longer in use, delete it in settings.

I see you’ve added a unique_id. See if you have a duplicate sensor with _2 on the end of the entity ID.