Do you have an example of a non-commutative ring $R$ (possibly not unital) such that $$[[x,y],z]=0 \qquad \forall x,y,z \in R$$
where $[x,y]=xy-yx$ ?
Of course this is true if $R$ is commutative, since $[x,y]=0$ for any $x,y \in R$. I tried $R = M_2(\Bbb F_p)$, but it seems painful to check whether $[[x,y],z]=0$ holds or not. Maybe there is an easier idea? Thank you very much!
The simplest example I can think of is the (non-unital) algebra of strictly upper triangular $3\times3$-matrices: $$ R=\left\{\left(\begin{array}{ccc}0&a&b\\0&0&c\\0&0&0\end{array}\right)\bigg\vert\ a,b,c\in\Bbb{R}\right\}. $$ All the commutators have $a=c=0$, but the $b$-component of $[x,y]$ is non-zero iff the $a$-component of $x$ and the $c$-component of $y$ are both non-zero. Therefore we also get $[[x,y],z]=0$ for all $x,y,z\in R$.
Unless I missed something we can actually make $R$ unital by allowing all the upper triangular matrices such that the diagonal entries are all equal. After all, adding a scalar multiple of $I_3$ is not going to change the commutators one bit.