One technical definition of empathy is understanding what someone else is feeling. In war you must empathize with your enemy in order to understand their perspective and predict what they will do next. This cognitive empathy is basically theory of mind, which has been demonstrated in GPT4.
https://www.nature.com/articles/s41562-024-01882-z
If we do not assume biological substrate is special, then it's possible that AIs will one day have qualia and be able to fully empathize and experience the feelings of another.
It could be possible that new AI architectures with continuously updating weights, memory modules, evolving value functions, and self-reflection, could one day produce truly original perspectives. It's still unknown if they will truly feel anything, but it's also technically unknowable if anyone else really experiences qualia, as described in the thought experiment of p-zombies.