If a scalar operator $\hat{S}$ is defined as an operator that is invariant under rotations, i.e $$U^\dagger S U = S,\,\,\,\,\,\,\, U=e^{-i\theta\hat{\mathbf{J}}\cdot{\mathbf{n}}}$$ which is equivalent to $$[J_i,S]=0$$
Then, the potential energy $V(\mathbf{r})$ is not a scalar operator unless $V(\mathbf{r})= V(r), r=|\mathbf{r}|$ which seems to contradict this wikipedia page (https://en.wikipedia.org/wiki/Tensor_operator#Scalar_operators) and whole lot of standard textbooks.
What am I misunderstanding?