nmcli has a problem in handling passwords starting with $ (dollar sign)
If a wifi hotspot password starts with "$", nmcli has difficulties connecting to it.
Try connecting to a hotspot with a password such as $amplePassword, using the following command:
nmcli device wifi connection "sample_ssid" password $samplePassword
It results in:
Error: 802-11-wireless-security.psk: property is invalid.