A FLAVOPROTEIN enzyme that catalyzes the oxidative demethylation of dimethylglycine to sarcosine and formaldehyde.