Peace be upon you. If your ignorance was excusable, then you do not need to make up those prayers. However, if your ignorance was due to negligence, it is obligatory to make up those prayers as a precaution. Excusable ignorance refers to someone who is justified in their ignorance, such as relying on a legal argument and later realizing their mistake. On the other hand, negligent ignorance is when someone is not excused for their ignorance, like someone who neglects to learn the rulings.
According to Grand Ayatollah Sistani: If your ignorance was excusable, your prayers are valid. If it was negligent, your prayers are invalid and must be made up.
According to Grand Ayatollah Khamenei: If you were negligently ignorant, your prayers are invalid. If you were excusably ignorant and recited it believing it to be correct, your prayers are valid.
Excusable ignorance is when one is unaware of their ignorance or is aware but does not find a way to overcome it. Negligent ignorance is when one is aware of their ignorance and knows the possible ways to overcome it but does not pursue them.
May you be successful in all good deeds.