Yup, different manufacturers use different packages over the decades, but a 2N2222 is a 2N2222.
Good for you that you were able to re-use your existing ones! BTW, I don't think you were the first to make this particular misstep, not by a long shot. It is a very easy one to make.