Let $E$ be a matrix with the same size as $F$, and with all elements $E_{jl}=1$.
Then there are several different ways to write the expression using the Hadamard ($A\!\circ\!B$), Matrix ($AB$), and Frobenius ($A\!:\!B$) products.
$$\eqalign{
S &= (F\circ F):WE + (F\circ F):W^TE - 2\,FF^T:W \cr
&= (F\circ F):(W+W^T)E - 2\,FF^T:W \cr
&= (\,(F\circ F)E^T-FF^T):(W+W^T) \cr
&= (\,(F\circ F)E^T-FF^T):K \cr
}$$
where $K = W+W^T$
We can also find the differential of that final expression as
$$\eqalign{
dS &= (\,(dF\circ F)E^T+(F\circ dF)E^T-dFF^T-FdF^T):K \cr
&= 2\,(dF\circ F):KE-2\,dF:KF \cr
&= 2\,dF:F\circ(KE)-2\,dF:KF \cr
&= (2\,F\circ(KE)-2\,KF):dF \cr
}$$
And since $dS=\frac{\partial S}{\partial F}:dF\,\,$ the derivative must be
$$\eqalign{
\frac{\partial S}{\partial F} &= 2\,F\circ(KE)-2\,KF \cr
}$$