Use Ansible jinja2 filter reject in stdout_lines

I need to reject “" from stdout lines. all values from stdout_lines except "” symbol to be saved to “nfs_clients” variable

    "stdout_lines": [
        "rchinnn01",
        "rchinnn02",
        "*"
    ]

   - set_fact:
     nfs_clients:  "{{ nfs_clients_out.stdout_lines | reject('search','*') | list }}"

TASK [set_fact] ***************************************************************************************************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: error: nothing to repeat fatal: [rchinnn03]: FAILED! => {“msg”: “Unexpected failure during module execution.”, “stdout”: “”}

search takes regexp and * is a regexp special character so you need to escape it or just change search to equalto.
Your indentation is also off, nfs_clients need to extra spaces in front.

   - set_fact:
       nfs_clients: "{{ nfs_clients_out.stdout_lines | reject('equalto','*') | list }}"