There is nothing at all wrong with representing the solutions by
$$x = \frac{(1 - 7i) + \sqrt{18i}}{2(1 + i)}$$
That is a perfectly valid, explicit mathematical expression on the right and if $x$ satisfies this equation, it satisfies the other. The trick is that, as mentioned in the comments, $\sqrt{a}$ is ambiguous for complex $a$-input - technically it is too for reals, but "less" so in that it is easier to choose between the two options. But as long as you understand that symbol as being substitutible for either of two values it represents, or you set up a convention ahead of time, then there is no problem here.