Dear @Tony111,
Thank you for getting back to us.
Based on the information so far it is unfortunately still not possible to give a detailed advice. I did not understand yet, what exactly the judge meant if he/she was referring to a family residence permit. Do you have a wife or child (more information here) in Germany who holds a valid residence permit or even the German citizenship? In case you have a child here, are you officially recognised as father and are you taking care of the child?
However, as the judge already recommended, please discuss the following steps with your lawyer as well. He/she will know your personal situation and the perspectives best.
And as always, also don't hesitate to get back to us with any further question.
All the best,
Meike
P.S.: I saw that you opened another thread containing the same post. In order to keep a better overview and information in one place, I closed it. I hope this is okay for you. We always recommend to use the comment function and to stay within one thread in case it is about the same question/topic.