If you are running 24.04, try it now
Code:
wget -N -t 5 -T 10 https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info && \
chmod +x wireless-info
sudo ./wireless-info
Then look at the results
The script wasn't meant for users to run with sudo as sudo is in the script itself only when needed. When run normally the script asks for the password but it isn't used for the netplan parts