Both sentences are correct, but they have slightly different nuances:
* "That smell takes me back to my childhood" suggests that the smell mentally transports you to your childhood memories.
* "That smell brings me back to my childhood" has a similar meaning but can imply a more emotional connection, as if the smell brings those memories closer to you.
Both are commonly used, so you can choose based on the tone you prefer.