Take a unit sphere $S^2$ and a hyperbolic surface $X$. Then the product $S^ 2 \times X$ is not flat and has zero scalar curvature. Also it is conformally flat by a paper
Simon Salamon: (2009) Complex structures and conformal geometry. In: BOLLETTINO DELLA UNIONE MATEMATICA ITALIANA, vol. 9, pp. 199-224
as per editor Holonomia.