There are multiple ways to view the Wi-Fi password, but using Settings is the easiest. The Netsh utility, accessible via Command Prompt, shows passwords for all the networks you've ever connected to.
I've been using Windows 11 since before it was released, and these are the 5 hidden features I wish everyone understood.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results