If two non mahrams are talking with each other with the intention of marriage, can they gift each other gifts on their anniversaries or is it like expressing love and thus being haram? Or it depends on the gift? Like socks for example is it alright?

As long as the gift is appropriate/professional (not something provocative) then it’s ok