I beg to differ, if the OP is flying from DMK to KL.
Where did he mention fly to KL from DMK
He stated....
"Following that, I'll be travelling south and likely exiting Thailand on a ferry into Malaysia where I'm not confident they'll have the option to get a re-entry permit."