Prove that $(x-1-\sqrt{2-i \sqrt3})(x-1+\sqrt{2+i\sqrt{3}})$ is not in $\mathbb{R}[x]$
Solution: $$ p(x) = ((x-1)-\sqrt{2-i \sqrt3})((x-1)+\sqrt{2+i\sqrt{3}})=(x-1)^{2}\color{red}{-}(\sqrt{2+i\sqrt{3}})^{2}= (x^{2}+2x+1)\color{red}{-}(2+i\sqrt{3}) $$ so, the polynomial $p(x)$ is not in $\mathbb{R}[x]$.
Please check that this solution is correct. I tried prepare other solution, but am not idea.
There is no need to expand all the terms—doing so is algebraically messy and ultimately led to your error.
A monic quadratic polynomial with roots $\alpha,\beta \in \mathbb{C}$ is in $\mathbb{R}[x]$ if and only if both $\alpha + \beta$ and $\alpha\beta$ are real, since we have $(x-\alpha)(x-\beta) = x^2-(\alpha+\beta)x + \alpha\beta$.
Apply this with $\alpha = 1+\sqrt{2-i\sqrt{3}}$ and $\beta = 1-\sqrt{2+i\sqrt{3}}$. Is $\alpha+\beta$ real?