For the first 2 years of me praying as a Shia I used to raise my index finger in tashahhud until I found shias and shia scholars saying this isn’t something shias do and it may invalidate salah. Do I have to make up 2 years worth of salah that I did because I used to raise my index finger? I was praying everything the Shia way but this was my only unintentional mistake

No you do not need to make up the prayers.