Can an error message display LaTeX?

So I’m creating an asynchronous activity, and students are completing a table of i to a power with the goal of noticing a pattern. In the table, the student is asked to simplify i^{3}. I want the error message to be like a hint to try to rewrite i³ as (i²) ⋅ i.

Below is what I have tried, but the error message just displays it as text. Can an error message display LaTeX?

cellErrorMessage(3,3):
when this.cellContent(3,3) = “-i” “”
otherwise "Try (i^{2}) \cdot i"

No latex in error messages and warnings, sorry.

Thank you for your reply! I can now move on to plan b.