Yes.
Once the state (VA) has your money, filing a tax return is the only way to get it back.
And then you will pay it to Maryland.
Note that VA and MD are reciprocal states - but only on earned income.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"