MrB,
First, glad that you're still with us. Second, I'm not aware of any regulations that prohibit you from flying. I know of an RCAF pilot who had a mental health issue and also attempted suicide. Fortunately he was not successful and was able to get the help that he needed. Once the flight surgeon cleared him to do so, he returned to flying duties. I'm thinking that once you're medically cleared I see no reason why you could not fly.