Password_field helper and HTML 5 Data attributes

I’m trying to use the password_field form helper, but to use it with Stimulus I need to add a data-mycontroller-target attribute to produce something like that

<input placeholder="description" class="form-control" data-mycontroller-target="passwordfield" type="password" name="user[password]" id="user_password">

But whenever I try to do this using a form helper I get error messages <%= f.password_field :password, placeholder: "description", class: "form-control", data: { mycontroller-target: "passwordfield" } %>

12:49:20 web.1 | app/views/devise/sessions/new.html.erb:28: syntax error, unexpected ‘:’, expecting => 12:49:20 web.1 | app/views/devise/sessions/new.html.erb:28: syntax error, unexpected ‘}’, expecting ‘)’ 12:49:20 web.1 | app/views/devise/sessions/new.html.erb:53: syntax error, unexpected end', expecting ')' 12:49:20 web.1 | app/views/devise/sessions/new.html.erb:61: syntax error, unexpected end’, expecting ‘)’

Any idea how to solve this?