Jenkins pipeline is getting failed

Hello All,

Thanks in advance, I am trying to perform remote shell command execution.

sh “”“ssh -ttq ${hostlogin}@${hostname} -o StrictHostKeyChecking=no ‘docker ps -a|awk ‘/authentication-service/ {print $1}’ -’”"""

From the following message, I added \ for $ yet i got the same error, Any help is appreciated
When running the above one I am getting an error.

Running in Durability level: MAX_SURVIVABILITY
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 12: illegal string body character after dollar sign;
solution: either escape a literal dollar sign “$5” or bracket the value expression “${5}” @ line 12, column 67.
h -ttq ${hostlogin}@${hostname} -o Stric