Welcome back to the Wefugees Community and thank you for reaching out to us.
I am afraid that it's hardly possible to give individual legal counselling on this public platform - especially without knowing the situation about the respective person in detail.
I would highly recommend the person you are describing to contact a migration counselling office to get support and to discuss the next steps carefully.
About the "new" law you mentioned: I assume you are referring to the residence permit according to section 25a of the German Residence Act - which is not knew, but got changed at the beginning of 2023 (now young people between 14 and 27 years can apply for it, if the meet the requirements). One of the conditions is that the applicant has been successfully attending school for at least 3 years, i.e., he/she were promoted to the next higher class every year or the person already has a German school or vocational school certificate. One negative change of the law implicates that the applicant needs to hold a "Duldung" for a minimum of 12 months before being able to receive the residence permit according to 25a. For a full list of the requirements (also in various languages) you may check Handbook Germany.
If you or the person mentioned need help in finding a counselling office in your town or if you have any other questions, please don't hesitate to get back to us.
All the best,