JavaLatte gave an excellent answer in 2017 about the verb attach, which takes the preposition "to". My question concerns attachment in a non-physical sense. "His attachment to his ex-girlfriend made him miserable for years." Here "to" feels too physical. I find myself preferring "for" when attachment is used in a mental/emotional sense: "His attachment for his ex finally ended when he fell in love with somebody else. Attached to her, he let go of his ex." For me, the to/for issue seems to concern the noun (attachment for), not the verb (attached to). Any thoughts?
If it is the word "attachment" that sounds more physical in your context, you can use another word.
So, if you want to avoid this you can use a different word, like "affection for" or "passion for" - the solution to make it sound less physical is not in the preposition but in the word attachment /affection.