You can subtract up to $12,500 of your military retired pay from your gross income before Maryland works out your tax. From age 55 the subtraction rises to $20,000.
There is nothing to file separately. Claim the subtraction on your Maryland income tax return using the resident tax booklet instructions.
Your Form 1099-R showing the retired pay, kept with your tax records.