Hi, When the term"chemistry" is applied on a human level, it means mutual interactions. "The chemistry of the personalities is a big factor".---- sounds a little odd to my ear though.
I don't see anything wrong with your wording. You can talk about e.g. the chemistry of a team, the chemistry in a classroom, and the chemistry of the personalities involved in something to refer to the way members of a group (including a pair) interact.