The solution to $z^2+(1-i)z-1=0$? I am teaching myself complex numbers, yet I can't solve this exercise:

Find all complex number solutions to $z^2+(1-i)z-1=0,$ and provide them in standard $z=a+bi$ format.

I've tried using the classic formula $\dfrac{-b \pm \sqrt{D} }{2a},$
and have found that $D=4-2i$, which leads to the solution: $$
z=-\frac{1}{2} +\frac{i}{2}\pm\sqrt{1-\frac{i}{2}}.
$$
I am however unable to take the square root of either $1-\dfrac{i}{2}$ or $D=4-2i$, which means I cannot express the solution as $a+bi$.
I have tried inputting this into Wolfram Alpha, Symbolab and other online complex calculators and they all give different answers, none of which are the above answer, nor are they the same as the text gives, which is:
$z=\dfrac{\pm\sqrt{\sqrt{5}+2}-1}{2}+\dfrac{1\pm\sqrt{\sqrt{5}-2}}{2}i.$
I do not see an obvious link between the given equation and the given solution. What am I missing?

Your answer is correct. Note the principal square root of a complex number is
$$\sqrt{x+iy}=\sqrt{\frac{x+\sqrt{x^2+y^2}}{2}}+isgn(y)\sqrt{\frac{-x+\sqrt{x^2+y^2}}{2}} .$$
Applied to your case gives
$$\sqrt{1-i/2}=\frac{1}{2}\sqrt{2+\sqrt{5}}-\frac{i}{2}\sqrt{-2+\sqrt{5}} .$$
So the solution to your quadratic is
$$z=-\frac{1}{2} +\frac{i}{2}\pm\sqrt{1-\frac{i}{2}}\\
=\dfrac{-1\pm\sqrt{2+\sqrt{5}}}{2}+\dfrac{1\mp\sqrt{-2+\sqrt{5}}}{2}i$$
(note the ordering of the plus, minus signs).
