My toenail was ripped off back in October, a nail has halfway grown back. Is it safe to paint it??

Yes. It is your replacement nail; so there are no problems punting it. All the best and happy that is growing in! It is slow.