Replace a string in multiple lines in a file not working in windows

Hi all,
I'm written a play book to replace a string in multiple lines in a file but
it not reflected, It has changed in last line of a file.
not replace in multiple places.

- name: updating driver letter as in config file
  win_lineinfile:
    path: "{{ item.path }}"
    backrefs: true
    regexp: '-fileOverwrite_D'
     line: '-fileOverwrite_{{ target_disk|upper }}'
    state: present
  with_items:
      - "{{ result.files }}"

The file of content is as below:

install