Alloerotic or Alloerotism is a term donating feeling sexual feelings towards another person. It was created as the opposite to Autoerotic or desires relating to oneself.
Refrences
https://www.merriam-webster.com/medical/alloerotism
https://medical-dictionary.thefreedictionary.com/alloeroticism