Let's first recall why there are restrictions on the identity $$\sqrt{ab} = \sqrt{\vphantom{b}a} \sqrt{b}. \tag{1}$$ The reasoning is that often given is that if, say, $a = b = -1$, then $(1)$ would yield the apparent contradiction
$$1 = \sqrt{1} = \sqrt{(-1)(-1)} = \sqrt{-1}\sqrt{-1} = i^2 = -1.$$
But this computation hides an implicit property that we are using when we use the symbol $\sqrt{\vphantom{x}}$ and what we mean when we use it.
The key point to remember is that every nonzero number, whether real or complex, has two square roots. That is to say, if $z \ne 0$, then there are two distinct solutions (possibly real, possibly complex) to the equation
$$w^2 = z.$$ For instance, if I ask for the solution to the equation
$$w^2 = 4,$$ you might write
$$0 = w^2 - 4 = (w + 2)(w - 2)$$ hence $w \in \{-2, 2\}$. And if $z = -1$, we have
$$0 = w^2 + 1 = (w + i)(w - i)$$ hence $w \in \{-i, i\}$.
When the solution to such an equation is real-valued, it is often convenient to use the notation $$w = \sqrt{z} \tag{2}$$ to denote the positive real-valued square root; so for example, when we write $\sqrt{4}$, what we mean is $2$, and not $-2$. But over the complex numbers, this notion of "positive" or "negative" does not apply, because complex numbers are merely ordered pairs of reals with a special multiplication rule.
This imposition on $\sqrt{}$ (namely, that we are talking about the positive root) for real-valued square roots, is what leads to caveats regarding the identity $(1)$. But a different way to conceptualize square roots that has more applicability to complex numbers is to think of it as a mapping rather than a function.
For instance, consider the function $$f(x) : \mathbb R^+ \to \mathbb R^+, \quad f(x) = x^2.$$ This function has as its inverse
$$f^{-1}(x) : \mathbb R^+ \to \mathbb R^+, \quad f^{-1}(x) = \sqrt{x}.$$ There is no issue with uniqueness because we restricted the domain and codomain to the positive reals. But if we instead write
$$f(x) : \mathbb R \to \mathbb R, \quad f(x) = x^2,$$ then the inverse function is not well-defined because as we pointed out, there are in general two distinct square roots, and there is no intrinsic mathematical reason to choose one over the other. That we mean the positive root when writing the symbol $\sqrt{}$ is just a notational convenience. We address this shortcoming by allowing the inverse to not be a function but a mapping; e.g., the map
$$f(z) : \mathbb C \to \mathbb C, \quad f(z) = z^2$$ has an inverse mapping
$$f^{-1}(z) : \mathbb C \to \mathbb C \times \mathbb C, \quad f^{-1}(z) = z^{1/2}$$ where the codomain is a set of two complex numbers; e.g.,
$$f^{-1}(3 - 4i) = \{2 - i, -2 + i\},$$ and this also works for reals, whether positive or negative:
$$f^{-1}(4) = \{-2, 2\},$$ and
$$f^{-1}(-9) = \{-3i, 3i\}.$$ We basically choose not to choose between either equally valid solution.
So when we say, $\sqrt{a + bi}$, what do we really mean by this? The use of $\sqrt{}$ is an abuse of notation because it doesn't make sense to ask for the "positive" square root of a complex number. For instance, when we write $\sqrt{3 - 4i}$, do we mean $2 - i$, or do we mean $-2 + i$? Some people might say, "just pick the root with positive real part." And where does that lead us if we write $\sqrt{-1}$ which has zero real part? Or if we say "just pick the root with positive imaginary part," that of course is no better.
One of the fundamental concepts in complex analysis is the notion of multivalued functions. This is the mapping idea that we discussed above. So for instance, when we ask for the $3$ cube roots of $1$, we mean the set $$\left\{1, -\frac{1}{2} + \frac{\sqrt{3}}{2} i, -\frac{1}{2} - \frac{\sqrt{3}}{2} i \right\}.$$ Or when we talk about solutions to the quadratic equation, we write $$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.$$ That $\pm$ symbol is a notational shorthand for the set
$$\left\{\frac{-b - \sqrt{b^2 - 4ac}}{2a}, \frac{-b + \sqrt{b^2 - 4ac}}{2a}\right\},$$ which we would not actually need to use if we instead kept in mind that there are two square roots of the discriminant.