Creating structured YAML list using panel (without keys)

Instead of using the UID, you can use the URI:

fields:
      name:
        label: Name
        type: select
        options: query
        query:
          fetch: pages
          template: route
          value: '{{uri}}'

Edit 1: Have a look at the list field. It generates the kind of output you are looking for.

Edit 2: Don’t know if you can use that together with querying pages, though. You could however adapt this field to your purposes.

Edit 3: If you can live with a comma separated list of entries, check out the multi-select field by @distantnative