2022 Toyota Corolla all keys lost is done with Autel MaxiIM IM608. Took a few attempts but found the correct one programmed everything worked perfectly.
It is a US car, generate Autel ikey universal remote. Just 16 minutes reset then program keys afterwards. Did without 12 digits reset immo. Use smart pro to program. Yes always 15min reset to get access to AKL ! Same with Subaru.
And you need to unlock key if you purchase an original used key.
I tried backup immo data then use analog key add a key, but it saied that was updated and would not be able to do it.