A demoralized inf unit flees out of an assault hex. No enemies are in the vicinity (except some still in the assault hex) so no one is able to spot or target them. Is the demoralized unit thus in a safe hex or not?
When you flee from an assault hex you just move to any adjacent hex that doesn't have an enemy unit and stop. You'll flee towards a safe hex next turn if you fail to rally.