It’s not full discussed in the manhwa yet but it seems the girl was Yeon’s original soulmate before his previous incarnation had tied a red thread to Kihoon’s previous incarnation. There is a chapter that explains how it was done and the ramifications of it.
I’m in ch.18, I wanna know why Yeon and the girl had the red string