Disclaimer: The following artwork depicts a fantasy scene from a series of roleplaying sessions proposed by my RP partner, AlyxShark. This person is not connected to me in any way professionally. As a person who works in mental health, I would like to differentiate between reality and fiction. Fantasies such as those in roleplay & kink play with power dynamics & taboos as a way to explore experiences that are not appropriate in real-life situations. A sexual/romantic relationship with a professional you work with such as a physician, therapist, professor, or someone similar is in all cases unhealthy, toxic, & inappropriate. It is also a violation of every professional code of ethics I am aware of.
If the professional you work with inappropriately behaves towards you, contact their supervisor or your local licensure to report the behavior. If you have feelings like these come up for a professional in your life such as your therapist, I would suggest bringing it up to them as this can often be transference and could be an important milestone in your personal growth work.
A good book to read for this concept is called "Sex in the Forbidden Zone" by Peter Rutter M.D. (
https://a.co/d/fbr9vGf). It describes not only the allure of those situations but also the effects of the abuses of power by people in certain roles. It is a bit dated but still a solid resource on how the RL version of these situations is harmful.