Hi there, I am afraid this is indeed a red flag, if the officer thinks your husband stayed with his ex wife for the purpose of getting a residency in Canada, it will be extremely difficult to prove them otherwise especially that he stayed with her till 2018, which is probably the time he needed...