When is it safe to have sex and ttc after chemical pregnancy?

My heart is broken and I am devastated, but I am still hopeful for my rainbow baby 🥺🌈❤️🤞🏼