Render list in data_template

How can I render list in data_template?

action:
    service: input_select.set_options
    data_template:
      options: "{{ states.media_player.sony_bravia_tv.attributes.source_list }}"
      entity_id: "input_select.playlist"

I have tried the above method, but the output is rendered is string not list.
the options: states.media_player.sony_bravia_tv.attributes.source_list does not work also.

Templates will always return a string. If you want to render a list, add the list to data_template. It does mean that you’re limited to predefining the number of options.

Here is an example of sending a list of RGB colors to the light turn_on service:

script:
  dynamic_light:
    sequence:
      service: light.turn_on
      entity_id: light.kitchen_lights
      data_template:
        rgb_color:
          - "{% if color == 'red' %}255{% else %}0{% endif %}"
          - "{% if color == 'green' %}255{% else %}0{% endif %}"
          - "{% if color == 'blue' %}255{% else %}0{% endif %}"