Welcome to the Wefugees Community and thank you for reaching out to us. Based on the information you provide, you may be eligible for the residence permit according to section 25b. However, every case needs to be assessed individually and there are a few requirements to fulfill. I tried to give a comprehensive overview (I translated one which was compiled by the Diakonie in German) on these requirements here. I hope it helps and and please don't hesitate to get back to us with any further questions.
All the best,