Ka-daʾbika begins with the kāf of comparison and preposition. Daʾb follows in the genitive and forms an iḍāfah with the attached second-person pronoun -ka. The expression means “like your familiar pattern.”
In qablahā, qabla is a temporal expression, and -hā refers back to the preceding experience. The phrase locates the earlier relationships before the present sorrow.
This is a comparison of experiences, not of physical appearances: the poet's present emotional condition resembles earlier ones.