Dear @Khushbupatel,
Thanks for sharing your question with the Wefugee Community!
Unfortunately, I am not familiar with the conditions of your residence permit. When I tried to make some research, I found out that travelling within the EU is possible (90 days within 6 months), as long as you hold a valid travel document and a visa (if required). In general, if you have a residence permit in Germany and you leave the country for more than 6 months, your residence permit will not be valid anymore. Maybe @Safia Advocate can provide some more information on this.
All the best,
Meike