Praise be to Allah, and peace and blessings be upon the Messenger of Allah. To proceed:
If a person avoids a place for a valid and realistic reason, such as the presence of a danger or a previous harm that may reasonably occur again, there is nothing wrong with that, because this is part of taking reasonable precautions.
However, if the place is safe and the person avoids it because they believe that a tragedy that happened there in the past may cause another misfortune to happen in the future, then this falls under forbidden superstition and belief in bad omens. There is no connection between a tragedy occurring in a particular place and another tragedy occurring there in the future.
The Prophet ﷺ said:
“Belief in bad omens is shirk.”
Narrated by Abu Dawud and al-Tirmidhi.
A Muslim should put their trust in Allah and should not allow superstition or unfounded fears to prevent them from doing what is beneficial.
However, if a person does not believe that the place brings misfortune but simply avoids it because seeing it brings back painful memories and causes intense sadness, then this alone is not considered belief in bad omens, as long as the person does not believe that the place itself causes misfortune.
Avoiding a place for a valid, realistic reason or because it evokes painful memories is, in principle, permissible.
But avoiding it because one believes that a tragedy that occurred there has made the place a source of evil or a sign that another tragedy will occur is considered blameworthy superstition.
And Allah knows best.