Came to this post many years later already on ionic 7 now. The orignal answer still kind of works but as ionic is now using shadow parts also in ion-toast you have to use the css part for it:
ion-toast::part(message) {
white-space: pre;
}
and a reminder to use \n
for the line break.