As long as $x$ is not zero, the squared error loss with respect to $w$ will be non-convex.
Here is a graph that shows both the squared error loss and the log loss of the sigmoid function: https://www.desmos.com/calculator/kxz6lzszf9
You can see that the squared error loss (red and orange curves) is non-convex, whereas the log loss (green and blue curves) is convex.
To follow up with Qiang Chen's answer, the red and orange curves are the squared loss functions in question, and they are both non-convex (not fully convex). They are also non-concave (not fully concave). They are half convex on one side and half concave on the other, with a middle inflection point where $f(x)=0$. Convex and concave functions are ones that always curve in the same direction, either up or down, they can not have that kind of "S" shape that both the red and orange curves have.
All the $x_1$ and $x_2$ values on the concave side of the function do not satisfy that definition of a convex function.