nmcli the WiFi network could not be found
this one fixed the issue for me - https://unix.stackexchange.com/a/519620/407616
add this
[device]
wifi.scan-rand-mac-address=no
to /etc/NetworkManager/NetworkManager.conf
then run
sudo systemctl restart NetworkManager
then you can connect to the ssid by
sudo nmcli dev wifi connect "SSID" password "wifipassword"