Sigh, blame Joomla for that… When you uninstall an extension it does NOT remove the Mail Templates linked to that extension. Therefore, uninstalling and reinstalling has absolutely no effect whatsoever on Mail Templates.
That said, the only problem I see with past mail templates is that between 7.0.0 (August 2021) and 7.2.3 (February 2023) it was using the wrong variable (IPLOOKUP instead of LOOKUP). There was never an extra parenthesis. The only thing I can think of is that you are being displayed the text-only version of the email which reads:
IP Address: {IP} (IP Lookup: {LOOKUP})
When the IP and LOOKUP variables are replaced you end up with something like
IP Address: 192.0.2.1 (IP Lookup: https://whatismyipaddress.com/ip/192.0.2.1)
Depending on your mail client, it might misinterpret the closing parenthesis as part of the URI. However, the purpose of a text-only email is that you will copy the link yourself.
Moreover, the link in the HTML email does not contain any parentheses as these are outside the anchor (A) element, let alone its HREF attribute.
Further to that, I am pretty sure that Install Or Update didn't actually do anything about it, as it only replaces missing email templates. The template wasn't missing, you were already receiving email. May you clicked Reset which removes all installed email templates for the extension and then reinstalls the latest version of the mail templates. But this also doesn't make sense to me as the location of the parentheses doesn't change. It actually hasn't changed since version 3.0.0 well over a decade ago.
Which leaves us with the only possibility. In the past, you had accidentally configured Joomla's Mail Templates to only send text emails, and now that you started going through them to troubleshoot this issue you are sending both text and HTML in the same email. This makes your mail client prioritize the HTML version of the email which shows you the correct link since there's a well-defined A element with an HREF attribute containing the lookup URL.
Now, why would Joomla default to text only emails, especially when they decided to add an email template feature which converts the text-only email to HTML anyway? BEATS ME! It makes no sense whatsoever. It confused the crap out of me for the ~15 minutes it took me to understand why my emails were all wonky all of a sudden, fortunately during a beta release so I had time to adjust my production sites.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!