Dear @anupaaron,
Welcome to the Wefugees Community and thank you for your question.
We discussed a similar context here before - you may want to check it. As long as you meet the respective requirements for the residence permit according to section 25b, you can apply for an extension (usually for another 2 years). If you are holding the temporary residence permit for a minimum of 5 years, you can apply for a permanent residence permit as well (Niederlassungserlaubnis).
I hope this helps and please don't hesitate to get back to us with any further questions.
All the best,
Meike