url_suffix
The url_suffix filter parses the URL and returns just the domain name suffix (i.e. the top-level domain and second-level domain if it exists).
For example, if the URL value is "https://www.branchcms.com" then the url_suffix filter would return "com".
If the URL value is "https://www.names.co.uk" then the url_suffix filter would return "co.uk".
{{ myUrl|url_suffix }}