A Labour MP has said he "deeply regrets" comments he made on a WhatsApp group - a day after health minister Andrew Gwynne was sacked for alleged racist and sexist remarks posted on the same chat.