Articles not showing CustomFields

Good morning, after updating from RT 5.0.3 to RT 5.0.4, the custom field values are not inserted correctly in the articles. It should be noted that the ArticleTemplates module is installed, and the plugin is enabled in the configuration file. However, in the message body, Perl statements are not interpreted correctly, and the statements between {} are displayed as text. For example, it displays:

"Ticket data:

ID: {$TicketId}
CF1 value: {$Ticket->FirstCustomFieldValue(‘CF1’)}
CF2 value: {$Ticket->FirstCustomFieldValue(‘CF2’)}
"
Any ideas?
Thank you in advance

Good morning,
Looking at logs I can see the following warnings in Apache log:
Stack:
[template:2]
[/opt/rt5/local/plugins/RT-Extension-ArticleTemplates/lib/RT/Extension/ArticleTemplates.pm:145]
[/opt/rt5/local/plugins/RT-Extension-ArticleTemplates/html/Elements/RT-Extension-ArticleTemplates/ProcessContent:8]
[/opt/rt5/local/plugins/RT-Extension-ArticleTemplates/html/Callbacks/RT-Extension-ArticleTemplates/Articles/Article/Elements/Preformatted/ProcessContent:18]
[/opt/rt5/share/html/Articles/Article/Elements/Preformatted:98]
[/opt/rt5/share/html/Articles/Elements/IncludeArticle:82]
[/opt/rt5/share/html/Elements/MessageBox:53]
[/opt/rt5/local/plugins/RT-IR/html/RTIR/Elements/UpdateData:77]
[/opt/rt5/local/plugins/RT-IR/html/RTIR/Update.html:167]
[/opt/rt5/share/html/Widgets/TitleBox:61]
[/opt/rt5/local/plugins/RT-IR/html/RTIR/Update.html:169]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:751]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:428]
[/opt/rt5/share/html/autohandler:53] (/opt/rt5/local/plugins/RT-Extension-ArticleTemplates/lib/RT/Extension/ArticleTemplates.pm:141)
[3419201] [Fri Sep 22 08:25:13 2023] [error]: Couldn’t parse article’s content: Article parsing error (/opt/rt5/local/plugins/RT-Extension-ArticleTemplates/html/Elements/RT-Extension-ArticleTemplates/ProcessContent:10)

Is it compatible ArticleTemplates with RT 5.0.4? Any idea why these warnings?

Thank you very much in advance.