True as that is, it’s possible to envision a hypothetical situation in which ALL alcohol was banned, with no exemptions for religious liturgies.
In such a case, Catholic Canon Law is clear that the sacrament is invalid and ineffective unless BOTH bread AND wine are consecrated and consumed by the priest.
A modification has been made in the case of alcoholic priests for use of mustum - an extremely-low-alcohol product. Possibly an exemption could be sought for general use of mustum by all priests in the affected area.
Otherwise, to have a valid sacrament, the law on prohibition would have to be broken, it seems, since the moral imperative for a valid Eucharist as commanded by Christ outweighs our obligations of obedience to secular authorities.