Is this formula correct I feel like something should be squared (My teacher told me something was wrong with it I forgot where it was)

The formula is
[tex]F=k\frac{q1q2}{r^2}[/tex]In order to determine the distance r, the formula will be
[tex]\begin{gathered} r^2=\frac{kq1q2}{F} \\ r=\sqrt{\frac{kq1q2}{F}} \end{gathered}[/tex]