Post
#2357 of the
https://forums.macrumors.com/thread...bridge-os-error.2128976/page-95#post-26679910
thread describes in detail various WiFi connection problems with two 2018 MBPs. Other Solouki posts on page 95 of this thread detail several other, potentially related, issues, such as Bluetooth connection problems.
In summary, I found that the MBP's WiFi hardware still works, as some WiFi packets are still being sent even when there is no LAN or Internet connections...so this would suggest that it is a DNS problem, but it isn't DNS since the MBPs still had the correct DNS servers.
I found these WiFi connection issues to be rare, random, and intermittent (meaning they often resolve themselves, but not always). And these WiFi connection issues caused many other problems, including iTunes improperly deleting its own iTunes Library on a SMB-mounted over WiFi hard disk, Time Machine backup failures to a Time Capsule, Mac App Store failures to update software, rsync (clone directories over WiFi) errors, ssh (secure shell logins over WiFi) errors, Apple Watch not unlocking MBP, etc.
Don't believe the Network Pane or WiFi menu item results stating that WiFi is connected, as these are not often updated and so can be wrong.