Use this order:
مَا + past verb + subject + object or other complements
● Put مَا before the verb, not after it.
● Do not replace or reshape the past verb merely because the sentence is negative.
● Translate the whole sentence naturally with “did not.”