First forget the network in the phone's settings and then reset back up the connection between the phone and router.
Also if your router permits it try splitting the frequencies to 2.4ghz and 5ghz and then try connecting to one and then the other and see what happens as some phone's prefer one over the other.
A Samsung Experience Store or Samsung Service Centre can take a look.
Daily Driver > Samsung Galaxy s²² Ultra 256Gb in Phantom Black.
The advice I offer is my own and does not represent Samsung’s position.
I have no affiliation with Samsung.
This is still an issue. It does not matter if it is 2.4 or 5ghz. The wifi icon shows as on, but it will not connect to wifi. As soon as i open the wifi settings and starts to search for signals and realizes there is a known signal and connects. I have to open the wifi settings all the time to make the phone search for signals and realize there are known wireless signals and connect to them.