Scale-invariant curvature fluctuations from an extended semiclassical gravity