Hello,
The new version of profile scripts UI release in 2022 includes syntax checking. For more details see the feature page on Experience League: https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/profile-parameters.html?lang=en
Thank you,
Cristinel