The former couple has been turning their breakup into songwriting inspiration.