Jesus answered and said unto them, Ye do err, not knowing the scriptures, nor the power of God. For in the resurrection they neither marry, nor are given in marriage, but are as the angels of God in heaven.
Yes, indeed. But, let us remember the context : some Jews are testing Jesus by introducing the case of a woman who married many times after each husband died. And ask to whom will she officially be married to ? Jesus points out that this way of understanding is extremely limited as this would be seeing mariage as a pure contract, a matter of law and ownership. So He says there is no marriage taking place IN Heaven.
But we can’t forget as well that marriage is not, for Catholics, a legal matter, but a sacrament, an act performed by God Himself through his servants, the holy priests. Is our baptism over once we died ? No, of course, on the contrary.
Let me add that the purpose of marriage is to give birth to eternal souls. They will look like their parents, as a symbol of their eternal union, sharing a common blood. Children image is marriage image.
As it has been said, Holy Mary is Jesus mother forever, as is Joseph His father forever too.
To me, our current life is not “erased” in Heaven. We will meet many different people, but we will not forget our love ones whom God put on our way, especially our closest relatives. I don’t think it will be a matter of “God or this person” but “God and this person, plus every other ones”.
We may also understand marriage as a physical union, which include sex. And this, as there will be no more birth in the afterlife, will be useless and also impossible. But companionship seems to me totally possible and a very positive thing, an image of our ever lasting union to God. If God created women and men, He knew why and so did He when He created Marriage sacrament.
Some could say that in Heaven we have no more male or female attributes, concluding this because of this sentence :
but are as the angels of God in heaven
In Heaven, we will be like Adam and Eve, with our spiritual and perfect bodies, living for those who chose to do so, a nice companionship with our loving partner, for eternity. But we could see it, even if the word is not proper, as a “beautiful friendship”. I don’t see anything that would help such a companionship.
Basically, our resurrection will be the same than Jesus One. And Jesus is a Man. Sexual type remains.