All EU countries bordering Ukraine are allowing entry to all people fleeing war in Ukraine. Thay are locating them on humanitarian grounds regardless of whether or not they have a biometric passport. This applies also to children.
Those who have Ukrainian nationality and a biometric passport, can enter the EU by presenting their passports at the border. For all the other cases, Member States will admit them on humanitarian grounds.
People with other nationalities, subjected to visa for entering the EU, should present their short-stay visa if they have one.