SoMa was a crime-ridden area nearly as bad as the tenderloin and has slowly gotten better, but pretty large parts of it never did. It's really hard to believe you lived in SF and thought SoMa was nice. Inner/Outer Sunset/Richmond are nice. Potrero Hill went from being kind of rough to being nice.
Lots of other areas are nice, but it's honestly very difficult to say SoMa, as a whole, was ever nice.
i'm having a really hard time reconciling 4 years in sf with thinking soma is one of the nicer parts of the city.