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}\\")}"

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

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

The file is in the location shown.