Answer first: a compounded preparation is made for an individual under a prescription and is not an approved product, so it carries neither the release testing nor the pharmacovigilance of one.
Regulators generally prohibit compounding what is essentially a copy of a commercially available product, with a shortage listing being the usual exception that permits it temporarily.
In practice, beyond-use dates on compounded sterile preparations are set by standards that depend on the preparation environment and are much shorter than a manufactured product's shelf life.
Compounding is defined in regulation as preparation for an individual patient under prescription and is distinguished from manufacturing by scale and by the patient-specific requirement.
Ask for the certificate of analysis on the lot. A serious facility has one.