Dear @Nima,
Welcome back to the Wefugees Community and thank you for reaching out to us again.
We actually discussed a very similar question here before - please follow the link for more information. In short, you have to hold the residence permit for minimum five years (unfortunately, the period in "Duldung" does not count). This means that you should be able to apply for the permanent residence permit (Niederlassungserlaubnis) by June 2027 if you fulfill all requirements. In the meantime you can extend your current temporary residence permit as long as you meet the respective conditions.
I hope this helps and please don't hesitate to get back to us with any further questions.
All the best,
Meike