How to use templating code when sending an email because rule is firing

I have query A that calculates the memory usage by threshold (which works) when it fires, it sends an email.

I have Query B that gathers the top 10 memory usage process

After that, in the bottom, I put this templating code in Summary, but it is sent as-is instead of actually templating, so Im not sure what Im doing wrong as it says on the docs that it supports templating.

Thank you!