http://handbookgermany.de/en/ukraine-info#faq_2715
How long will my residence permit (issued according to ยง24 Residence Act) remain valid?