I'm gonna go ahead and say that this isn't within the coundaries of consent. The guy even committed suicide, so it's not like they were both about to conceive and an accident happened.

Australian woman wins right to use dead boyfriend’s sperm to have children https://www.rt.com/news/430372-australia-woman-dead-boyfriend-sperm/