Welcome to the Wefugees Community and thank you for reaching out to us.
It is a bit difficult to give you a detailed answer without knowing your situation/background. However, as long as you do not hold a passport, it will be very difficult to deport you to your country of origin either. From my perspective, you did already well in taking care of the recognition of the fatherhood, the declaration of the custody and the application for the passport. Please do not forget to submit the documents you already have to the immigration office! They need to be informed about your German child and your efforts.
I can also highly recommend you to get in touch with a migration counselling office (they offer confidential and free of charge services). They can give you a more individual and also psycho-social support. Please let us know if you need help in finding such an office in your area.
In any case, don't hesitate to get back to us with any further questions as well.
All the best,