Your worries are well founded.
Just by looking at the diagram, and noting that the charges have the same sign and therefore repel one another, positive external work $W_{\rm external}$ must be done do to bring the charges closer together.
If the work done by the electric field is $W_{\rm electric}$, then assuming that there is no change in the kinetic energy of the charges as they a brought together, the work-energy theorem produces the relationship $W_{\rm external} + W_{\rm electric} = 0$.
Hence if $W_{\rm external}$ is positive then $W_{\rm electric}$ is negative.
The fact that $W_{\rm electric}$ is negative you suspected when evaluating $w_{\rm electric}$ because the electric field and the displacement are in opposite directions.
Your error is in this equation $d\vec{s} = {\Large \color {red}-}dr \,\hat{r}$ which has a negative sign in it.
The equation should be written as $d\vec{s} = dr \,\hat{r}$.
Forget about doing a proper integration and just imagine that in moving change $+q$ from a position $r_{\rm start} =b \,\hat r$ away from $+Q$ to position $r_{\rm finish} =a\, \hat r$, with $r_{\rm finish} < r_{\rm start}$, there is some sort of average electric force, $\vec F_{\rm average} \,\hat r$, acting on charge $+q$.
The displacement $\Delta \vec s = r_{\rm finish}\, \hat r-r_{\rm start} \,\hat r= (r_{\rm finish}-r_{\rm start}) \,\hat r$ ie in the negative $hat r$ direction.
The work done by the electric force is $(\vec F_{\rm average} \,\hat r) \cdot (r_{\rm finish}-r_{\rm start}) \,\hat r$
From this the work done in moving the charge $+q$ between those two positions is negative as you suspected.
So going back to your mistake.
I wrote $\Delta \vec s = r_{\rm finish}\, \hat r-r_{\rm start} \,\hat r=(r_{\rm finish}-r_{\rm start}) \,\hat r$ which I can rewrite as $\Delta \vec a = \Delta r \,\hat r$.
How did I figure out what $\Delta r$ should be?
As per convention it is $\text{finish - start}$
How does the integral figure out what to do?
Surely it is the same, $\displaystyle \int^{r_{\rm finish}} _{r_{\rm start}}\, ds =\displaystyle \int^{r_{\rm finish}} _{r_{\rm start}}\, dr = {r_{\rm finish}} -{r_{\rm start}}$ and you will note that the limits of integration decide on the sign of $ds$.
In the integral the sign of $dr$ is dictated by the limits used in the integral.
You adding that minus sign changed the order of integration with the lower limit now $a$ and the upper limit $b$ with the result that, after doing the integration, you get the correct result for an increase in separation of the two charges, the work done by the electric field is positive.