Error in Function call

I am using terraform remote to store my state, but since migrating a section of my code has stopped working stanza shown below

data "template_file" "user_data" {
   template = "${file("${path.module}\\user-data.sh")}"
}

when I run a terraform plan. I receive the following error

Error: Error in function call
 
on .terraform/modules/Webserver-cluster/webserver-cluster/main.tf line 26, in data "template_file" "user_data":
26:   template = "${file("${path.module}\\user-data.sh")}"
     |----------------
     | path.module is ".terraform/modules/Webserver-cluster/webserver-cluster"
 
Call to function "file" failed: no file exists at
.terraform/modules/Webserver-cluster/webserver-cluster\user-data.sh.

The file is in the location shown.