Firstly, if you have romantic interest in a person, then most likely sexual lust is in it too. So, the contemplation on unattractiveness could work here. Too much of it may result in depression. The antidote for this kind of depression is given in Vesali Sutta.
Secondly, you have to remember that nothing is permanent. The same person who was a baby, and then a child, then a teenager, is now an attractive adult in front of you, with what seems to be an attractive personality. The same person can change and become aged or ugly or diseased, or change to have an irritating personality the closer you get to them.
All things in the world are not as they appear to be. Some people romanticize the monastic life, but you can find that it is not as it appears to be, in the book "The Broken Buddha" by S. Dhammika.
The following excerpt from Therigatha 14.1 about a nun who was pursued by a man, is interesting for this context:
"What wrong have I done you
that you stand in my way?
It's not proper, my friend,
that a man should touch
a woman gone forth.
I respect the Master's message,
the training pointed out by the one well-gone.
I am pure, without blemish:
Why do you stand in my way?
.....
"You are young & not bad-looking,
what need do you have for going forth?
Throw off your ochre robe —
Come, let's delight in the flowering forest.
.....
"What do you assume of any essence,
here in this cemetery grower, filled with corpses,
this body destined to break up?
What do you see when you look at me,
you who are out of your mind?"
"Your eyes are like those of a fawn,
like those of a nymph in the mountains.
Seeing your eyes,
my sensual delight grows all the more.
Like tips they are, of blue lotuses,
in your golden face — spotless:
Seeing your eyes,
my sensual delight grows all the more.
.....
Like a mural you've seen,
painted on a wall,
smeared with yellow orpiment,
there your vision has been distorted,
meaningless your perception of a human being.
Like an evaporated mirage,
like a tree of gold in a dream,
like a magic show in the midst of a crowd —
you run blind after what is unreal.
Resembling a ball of sealing wax,
set in a hollow,
with a bubble in the middle & bathed with tears,
eye secretions are born there too:
The parts of the eye are rolled all
together in various ways."
Plucking out her lovely eye,
with mind unattached
she felt no regret.
"Here, take this eye. It's yours."
Straightaway she gave it to him.
Straightaway his passion faded right there,
and he begged her forgiveness.