AWS tunnel connection issues with proxy servers

Hi All,
I’m trying to connect to AWS instance through a tunnel in company laptop. If anyone has addressed the issue, please let me know. I installed socat. But running into issues with socks5. Here is the example command:

ssh -o ProxyCommand=‘socat - “socks5:%h:%p|tcp:[proxy-server]:[port]”’ -i “xyz.pem” ubuntu@ec2-[ip-address]

2017/10/27 19:19:37 socat[15] E unknown device/address "socks5"
ssh_exchange_identification: Connection closed by remote host