(I love Aldi! But I think such regulation would be pretty silly. But we already have such regulation in many parts of the world for many goods. Eg publ in the UK can't just sell you 500ml of beer, they need to give you a pint.)
Those extracting profit from deceptive packaging would do better to extract a moral lesson from the provenance of the baker's dozen.
Removed because it was, unsurprisingly, not the lowest common denominator EU wide. It's almost universally considered a tragic loss, I guess the only exception are those whose job description includes getting creative with packaging size.
(The old rule had lots of exceptions and loophole anyway. I remember that fresh yeast almost always came in little cubes of something like 42g, because that's a convenient amount for baking. And no one had any problems with that.
Do you really want bureaucrats or politicians to decide on arguments about what odd sizes are convenient enough to warrant granting such exceptions?)
However, I do remember shopping in Britain, where Tesco would give you the mandated unit price for one kind of apple per piece and the next box over with a different variety of apple would give you the unit price per kg. British supermarkets were a bit customer hostile like that. (I noticed them get a lot better when Aldi and Lidl really took hold in the UK. Especially those confusing '5-for-3' deals etc got much rarer.)
When packages are random sizes and always varying, it's impossible for anyone in adjacent industries to develop synergies.
List the price per litre or per kg, for instance, for every item in addition to the item's price and people can then compare between different brands on the shelf. This is already done in many cases though I do not know if there is a legal obligation.
People are not stupid by the way, they notice when an item they are used to buy shrinks.
Many countries have such legal obligations. Details obviously depend on jurisdiction.
A grocery story where all the isles are filled with identically sized boxes full of standardized products sounds pretty depressing, for one thing.
One example of shrinkflation / cost fuckery here is cheese. We buy a kilo of it every time, but they've changed it so you get e.g. 920 grams. Looks the same size, but it's slightly different, thus hard to make comparisons. Still up 30% since before the Ukraine thing though.