Just like tittle says , ive had this issue for 3 days now and i was finally able to figure it out
The issue could be because of 2 things :
Your wifi adapter cant detect your router because its not same band example:
CASE 1
Router is 5GHz adapter is only 2.4GHz , in this case wifi will not show up and your only fix is to get an ethernet cable and use it, am not sure if some routers allow swapping between bands but it could be possible
CASE 2
Am not sure how this even came to be an issue or hpw do i properly explain it. So ill skip to the solution directly
Go to Settings → Network & Internet → Advanced network settings → More network adapter options.
Right-click your Wi-Fi → Properties → Configure → Advanced tab.
Find “Country Region (2.4GHz)” you'll likely find yours in #0 (0-11) just change it to → #1 (1–13), then press OK
Hope this helped someone since I searched all of the internet for this issue and all i can find is generic answers to reset wifi settings and flush dns