Radicals in Fractions

I am wanting to write a fraction for the layering with a radical in it so students can self-check. Not sure what I am doing wrong

correct = this.latex = “\frac{sqrt{2}}{2}”

correct: correct

You forgot the \ for sqrt.