How would one say "used to", as in
I used to live in Kiev.
Previously, I was told you would use früher:
Früher lebte ich in Kiew.
But upon looking it up just again, dict.cc says you'd use pflegen:
Ich pflegte in Kiew zu leben.
Are both of these valid to say "used to", or does only pflegen work?