Unfortunately, you can only claim the Canada caregiver credit (CCC) for a spouse or common-law partner, your (or your spouse's or common-law partner's) child, grandchild, parent, grandparent, brother, sister, uncle, aunt, niece, or nephew.
You can’t claim it for helping an ex-spouse or friend.