Unable to connect to WiFi after restoring iPhone
My iPhone 14 pro was in repair, now it is back and I need to restore my phone through iCloud. In the beginning the phone is connecting to our home wifi network just fine, but once I connect to iCloud and I am logged in, the wifi connection breaks and 5G takes over. The funny thing is that it shows I am connected in my wifi settings, though I am not. And when I try to switch wifi off and on again, it seems to connect and it all looks fine, but, in reality, I am not connected. I have tried 'forget network', 'reset location and privacy settings', network settings', 'factory reset' and I turned my wifi router off and on again. No one else in the house (all iPhone users) have this problem so it seems relating to restoring my phone from iCloud and it starts the minute I log in on iCloud, because after the factory reset it worked fine, until the step in the configuration when you restore your data from iCloud. Please help. Thank you
[Re-Titled by Moderator]
iPhone 14 Pro