Welcome to the Wefugees Community and thank you for reaching out to us.
I am afraid that it is quite difficult to give you an advice without knowing your situation in detail. Unfortunately, it is often the case that the immigration office (Ausländerbehörde) is asking applicants for a family dependant residence permit to re-enter Germany with the "right" visa. We discussed this problematic topic a few times on this platform as well - in this thread, for istance.
In short, you will have to convince the immigration office that the visa procedure is absolutely unreasonable for you. Your lawyer should support you in this and possibly also taking the case to court. I guess the chances highly depend on your individual circumstances. I hope your lawyer is specialized on migration law? If you are insecure about the lawyers knowledge and performance, you may also consult a refugee or migration counselling office to get support and a second (free of charge) opinion. Let us know if you need help in finding a counselling organization close-by.
In case the visa procedure is unavoidable and at the end the best option for you, make sure to have a so-called "Vorabzustimmung" (pre-approval statement) by the Ausländerbehörde before leaving the country. We shared some information on it here.
I hope these information are helpful to you and please don't hesitate to get back to us with any further questions.
All the best,