MD/VA reciprocity question

Super confused by the tax reciprocity rules. Here's my situation:

 

Jan-April 2022: Worked and lived in MD
April-July 2022: Worked in VA lived in MD, so should only have been taxed in MD, but forgot to submit VA-4 early on so I got taxed in both for a couple of paychecks before I corrected this.

July*-Dec 2022: Worked and lived in VA

*July 18 move date to end of year is < 183 days

 

Sounds like I should file VA as part-year resident and MD as regular resident, but do I get a refund on the extra VA taxes I paid when I first changed jobs, and how?