That is changing all the time, through eating and drinking, wear and tear. We have very few atoms in our bodies that were there five years ago. What provides the continuity is the almost infinitely complex pattern in which matter is organized. That pattern is the soul, the real me. It makes perfect sense to believe that God will remember the pattern that is you, or the pattern that is me, and recreate those patterns in the world to come.
Christians call it resurrection .
We no longer think of our soul popping out of our body at death. And three days later I picture the body that was laid in Joseph of Arimathea's grave being disposed of by disintegration so it would never become an object of veneration. Complexity theory is also relevant for model theology. We can view each of the perennial forms of religion or ideology in terms of information theory. Rather than focus on trying to explain this or that little bit of a particular religion we can set it in a typical pattern of thinking.