The law to modernize nationality law (StARModG) has come into force on June 27, 2024, a retention permit will no longer be required in order to avoid the automatic loss of German citizenship if you accept Canadian or another citizenship upon application.
More information can be found here (in German): Staatsangehörigkeitsrecht - wichtige Änderungen