There are two matters here that should be kept quite separate.
Married or not?
The idea of a legally registered marriage is relatively modern. In ancient times, most common marriages (especially among the poor where most could not afford the "party celebration") simply began when people agreed to begin living together. Thus, in the ancient Biblical sense, the OP is married to the partner.
This would also be effectively true in many legal jurisdictions and would be termed a defacto relationship essentially equivalent to marriage. Thus, the decision to marry the partner after a defacto relationship will not change much legally.
To divorce or not?
Paul specifically addresses the OP's question in 1 Cor 7:12-14
To the rest I say this (I, not the Lord): If a brother has an
unbelieving wife and she is willing to live with him, he must not
divorce her. And if a woman has an unbelieving husband and he is
willing to live with her, she must not divorce him. For the
unbelieving husband is sanctified through his believing wife, and the
unbelieving wife is sanctified through her believing husband.
Otherwise your children would be unclean, but now they are holy.
Note that the word "divorce" in the above translation is simply ἀφίημι (aphiemi) meaning to "send away" which would apply whether the couple is formally married or not.
I think Paul's advice is best.