I think the friendliness is usually guilt-induced. Like other posters have said, also because he’s not sure of his own feelings. Anyone can be a grown up and be “nice” to people, but that’s not really what matters in this case, right?
Take it at face value, don’t dwell in his niceness. Do what you have to do to detach, grow, and love yourself again. I’m glad to hear that you’re putting yourself first.
I understand all this is 10 times harder when you have young children. Hang in there!