Initial error is: String does not match the pattern of “LEGACY_SYNTAX^”
i have tried a basic syntax substitution (trigger to triggers, platform to trigger) i get “Property triggers is not allowed”
There have been some renaming of the keywords in automations, templates and scripts, so maybe the error checker have not been updated properly for this.
The new notation is not using the platform keyword anymore, but instead trigger is used.
The original keyword trigger, I think should be triggers now, al though the webpage says different.