Bi-directional energy meter
Having designed a number of energy meters over the years, I can say with authority that reactive energy (Q) is not the same as exported energy (PE), in fact it has basically nothing to do with it. What you need is an energy meter that has separate counters for imported real energy (P) and exported real energy (PE).

Reactive power is basically only relevant for industrial metering, but in case you're interested, an energy meter can additionally have up to four counters for reactive energy (Q), these being, in order of real world relevance, inductive (QIND) and capacitive (QCAP), exported inductive (QEIND) and exported capacitive (QECAP). When there are six registers in total, the sign of real power is used to select which registers are accumulated.

Most important, however, is that when money is involved (the meter is used for billing), the exact meter brand and model must be accepted by your power grid company. If money is involved, they may also come and seal the meter themselves with their own seal, although the practice varies from company to company in different countries.

When you're reading the registers, be sure to note the difference between instantaneous power (P) and accumulated energy (W). The register names for instantaneour powers might be something like P, PE, Q, QIND, QCAP and the energies might be something like W, WE, WQ, WQIND, WQCAP etc.