Welcome to the Wefugees Community and thank you for your question.
We discussed a very similar one here, in which my colleague Christine wrote that it is generally possible to switch from a residence permit according to section 16b of the German Residence Act (for students) to a residence permit 16a (vocational training/“Ausbildung”). This table confirms her explanation. You may want to check Christine’s answer for more information.
I hope this helps and please don’t hesitate to get back to us with any further questions.
All the best,