Short answer: the keypair never expires.
Since the public key is essentially a computational result of so called one-way function, the public key can be derived from the secret key itself. Therefore, the term "keypair" refers to a pair of a secret key and complementary public key that can be regenerated from a secret key. The keypair is generated offline (or at least without touching Stellar network), so the network doesn't know anything about your new keypair until you send a transaction containing CREATE_ACCOUNT
operation for the public key of this keypair.
When the account is created, Stellar Core servers create a corresponding ledger entry which matches the public key of the keypair. After that we can say that the account exists on the ledger. You can even delete the account using MERGE_ACCOUNT
op and recreate it later using the same keypair.