No Internet after deepl cli error: "Connection failed: HTTPSConnectionPool(host='api-free.deepl.com': Max retries exceeded with url:. .. Failed to resolve 'api' free. deepl.com' Name or Service not known"

After this error, I can still ping my router but ping 8.8.8.8 gives “Destination Net Unreachable”.

Check the difference between normal mode and faulty state:

ip address show; ip route show; ip rule show

Try restarting the connection and router.
Clarify if you are using any VPN.