Geo, we worked on this through quality time on task. Speed-writing drills that target the preferred item. How many correct o's can you do in a minute? with a tiny reward if you can top your previous score. Or copying text from a paper, with incorrectly formed letters not counting in the total. (I suppose you could do copying math problems, too, since the 0 vs 6 issue is a problem.)
Even three to five minutes on this a few times a week did eventually get DS to learn some things he couldn't otherwise (and yes, things that the school wouldn't do for him. We started off with a fisted pencil grip that was very hard to change, and they wouldn't touch it because his writing was so pretty!)
DeeDee