DNS server still set to Expressvpn even after uninstallation. No Network Connection

Yesterday, when I turned on my laptop the wifi icon started with a question mark in it. I’ll be able to get a connection if I turn on my VPN.

When I am disconnected from my VPN, I have checked systemd-resolve --status and it shows that the resolve.conf mode is set to foreign and the DNS servers and domain are still expressvpn.

If I run cat /etc/resolv.conf it says Generated by expressvpn.

My guess is that my issue with not being able to connect to wifi with the VPN off is caused by the DNS servers still pointing to express VPN? I’m no network specialist so I’m not fully understanding other forum posts about Linux network settings. How do I just revert my DNS server and domain back to whatever is default? I tried uninstalling expressvpn and then restarting my computer, but then I was stuck without a network connection even though wifi showed as being connected. I tried a wired hotspot through my phone and still no network connection. I don’t remember what I did in the terminal but for some reason, wifi works again. so I reinstalled expressvpn so that I could turn it on and then turn off it to get a network connection.

Any help restoring DNS network connections to default would be helpful.

# Restore the default /etc/resolv.conf managed by systemd-resolved
sudo ln -f -r -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

# Re-enable and restart systemd-resolved
sudo systemctl unmask systemd-resolved.service
sudo systemctl enable systemd-resolved.service
sudo systemctl restart systemd-resolved.service

Noob question, but what does that do?

The above code replaces /etc/resolv.conf with a symlink to the configuration generated by systemd-resolved, which is the default system resolver as explained here:
Changes/systemd-resolved - Fedora Project Wiki

beautiful! Thank you!! The vpn setting are not showing up now!

It would appear that expressvpn may have created its own /etc/resolv.conf file (overwriting the default) and that is something that should not happen IMHO.