How long does a heart stent last for? Are they supposed to be replaced at some point?

Your whole life. Stents are for life. They become embedded in the wall of an artery. If a blockage develops in the stent there are a variety of methods for dealing with this. It would never be replaced... One has to work around it.