Under normal circumstances, the shelf life of high-alcohol wine is very long, but beer has a shelf life. If the beer is out of date, you can't drink it. Expired beer is easy to deteriorate and may produce some bacteria.
More relevant
Generally, high-alcohol liquor has no shelf life and can be preserved for a long time without unpacking, so there is no saying that it has expired.
If it is red wine or low-alcohol liquor, it may deteriorate after a long storage time. It is not recommended to drink wine that has not been drunk after expiration and is improperly stored.