Why are my keyframes not visible in the timeline?
EDIT: I guess the comment by @Gorgious is what you're experiencing. If not, try this solution:
If you've enabled the option Only Show Errors in the View menu of the Timeline window, than your keyframes will not show up unless there is an error.