Sweden has around 100 Gripen C/D. It is aquiring 60 Gripen E.
I believe the plan is to keep 40-60 Gripen C/D so there will be surplus aircrafts available anyway. Any Gripen will be shipped from the Swedish Air Force inventory.
The Swedish Air Force has received the first production Gripen E but the first unit is only to be formed in 2025.
Even best case, there will not be any Gripens flying for Ukraine until the end of 2024. Then Sweden would be reducing its readiness and that is why NATO membership is important. If they receive them in 2025, then it is less of a problem.
Some people speculate that it was Shoigu behind the assassination.
Sweden only has 96 gripen C/D vs the over 1000 American f16s (not including the many other countries with spare f16s), spending the valuable time training on a jet with only 1/10th the availability for a relatively small performance difference just isn't worth it at this point in the war.