Welcome
Refund of mandatory contributions to the German pension fund
If you have paid mandatory contributions to the German pension fund for less than 5 years altogether and currently live outside of the EU, you may be able to have your pension contributions refunded.
Please find more information on the website of the Deutsche Rentenversicherung here