Then a star large enough to fuse heavier elements needs to live its full life then die of a supernova to create elements heavier than iron
Lastly those remnants need to form a new solar system with a planet somewhat rich in these heavier elements to support life, as well as the time needed to have life spring up in the first place
In terms of how long all of these take, we’re pretty young cosmically