Nordics, Eastern parts (except Czechia), even many parts of the UK have byelaws (e.g. Glasgow). Illegal in Russia and Ukraine too.
Which "eastern parts"? I've never seen that rule here, but have seen people drinking in public. Do you know that or are you just asking AI to confirm your biases?
Public drinking is generally illegal in Poland ('police take a strict approach'), Romania, Lithuania, Slovakia (apparently not enforced in Slovakia).