You are in Germany legally and with permission. The Federal Ministry of the Interior and Community (BMI) has issued rules (Ukraine Residence Permit Continuation Ordinance), according to which if you were in Ukraine on 24 February 2022 and entered the Federal Republic of Germany for the first time by 04 March 2025, you are permitted to stay without a visa for a period of 90 days from the date of your first entry into the territory of Germany. This applies regardless of whether you are in possession of a passport or passport substitute.
However, applicants who have already submitted an application for a residence permit online are not (any longer) considered to be staying in the federal territory without a visa, but are permitted to stay in Germany until a decision has been made by the State Office for Immigration.
As a non-Ukrainian citizen did you have long-term Ukrainian residence rights before you fled, but you do not currently have a valid passport? In this case, please contact your embassy here in Berlin or your consulate general in Germany.
You were recognised in Ukraine as a refugee under the Geneva Refugee Convention or had international or equivalent protection status there, but you do not currently have a valid travel document? In this case, the State Office for Immigration will check which German substitute travel document can be issued to you.
If you were allocated to Berlin by the Berlin State Office for Refugee Affairs (LAF) or another authority, please apply to the Berlin Immigration Office (LEA) for a residence permit online.
You will find further information in the online application. It is not necessary to submit an application for asylum for your future protected status.