Dear @Sahil,
Welcome to the Wefugees Community and thank you for reaching out to us.
We discussed very similar questions on this platform before. You may want to check this thread or my colleague's answer here.
As spouse of an EU-citizen, you may be entitled to receive an independent residence permit after a divorce/seperation if you have been married to the EU-citizen for at least three years and at least one of these years in Germany. It is also required that you are working.
The relevant legal basis for this is paragraph 3, section 4, part 1 of the freedom of movement law.
I can also recommend you to get individual support in a migration counselling office in case you face difficulties.
I hope this helps and please also don't hesitate to get back to us with any further questions.
All the best,
Meike