Hello dear @Suny_life,
thank you for sharing your question with the Wefugees Community.
First you should change your name in your national passport, then you can change it in your residence card at your respective Foreigners' Office (Ausländerbehörde). The Foreigners' Offices usually ask you for your national ID Card as well. So, you need to first change your name in your national ID Card as well.
If you need help in the process of changing your name in your residence card at the Foreigners' Office, you can refer to one of the Migration Counseling Offices in your city, such as to Diakonie, Caritas, DRK/BRK, or to AWO, etc., and they will help you in this regard free of charge. I hope, you have got your answer.
I am a MBEON consultant. If you wish to contact me directly, you can see my profile and follow the instructions there.
Best wishes,
Fardeen Noori