Custom link in email can not be saved using the email builder

Your software
My Mautic version is: 7.2.2
My PHP version is: 8.4.28
My Database type and version is: MariaDb 12.3.3

Your problem
My problem is: We put custom links in the emails. By clicking the user can automatically login.

The custom links are placeholders in the email template and are replaced via an EventSubscriber in the code. This worked in the last 4 years, but not anymore. Now I got this error when I wanted to edit the email via the email builder of the admin: “Could not request your action
⨯
There are some form validation errors (customHtml: The email contains an invalid URL: {apicontent.loginticket}&redirectTo=/settings/faq) Please close the builder and fix them.”

This behavior experienced never before. Can I switch this somehow with settings or other way?

Thanks for your answers!