Malaysia does not claim to be an Islamic state, those weird rules only applies to Muslims.Yep you're right
Malaysian state's Sharia law criminalizes conversion from Islam - UCA News
New laws aim at educating and bringing offenders back to the right path of Islam, minister claimswww.google.com
All-female flogging squad enforces Shariah law in Indonesia – DW – 02/03/2020
A female flogging squad has enraged Indonesian activists. Authorities in the province say more women are committing "moral" offenses, which are punishable in Islamic-conservative Aceh by whipping or caning.www.google.com
Also for Indonesia that is literally only in that one place Aceh, most of Indonesia isn't like that.