Earlier quoted context omitted.
Except when it comes to baby formula, whilst it might be safe to consume, the various nutrients required by a growing baby start to degrade past the use by date so you run the risk of introducing defficiencies.
Baby formula in general is probably best not consumed, if there is any way around it. In the best cases it's not great, and there are so many horror stories of it being adulterated with garbage.
Indeed - breast is best, but having two children, one of whom had awful reflux and just could not breast feed, and another who was fine there are good reasons that baby formula exists.