v 2.2.3
tldextract accurately separates the gTLD or ccTLD (generic or country code top-level domain) from the registered domain and subdomains of a URL.
https://github.com/john-kurkowski/tldextract