I am doing this in $\mathbb{R}$. Given $A$ and $B$ are two square matrices so that $AA^T=BB^T$. I do not think it leads to $A=B$, but I cannot give a counterexample.
If not true generally, my further question is that: under what conditions, do we have $A=B$?
Thanks!
Indeed, $AA^T=BB^T$ does not imply that $A=B$. Take $A=I_2$ and $$ B=\begin{pmatrix} 0 & 1 \cr 1 & 0 \end{pmatrix}. $$ Because you said "but I cannot give a counterexample", let me say that taking matrices of size $2$ in many cases already gives a counterexample.
For the second question, this has been discussed already at MSE:
$AA^t=BB^t \implies A=B$