Could you please share the config text pasted into the forum (correctly formatted) rather than pasting images of text. We cant copy and edit your images as easily as text.
See the example here for the format you should be using: https://www.home-assistant.io/integrations/alert/#message-templates
The message key goes at the top level alongside the data key.
(this would have been a lot easier to show if it was text):