Hello @uzma
Nice to hear from you again.
You keep the Aufenthaltsgestattung till the very end of your asylum procedure. If you appeal, you still keep it until a final decision has been made on your case. After that you will be issued a Duldung/residence permit/etc. depending on the outcome.
It's true that you might get deported after the final rejection, especially if they already got your passport.
Best regards,
Thorgen