State tax filing

did you take an itemized deduction in 2022 for the erroneously withheld Maryland taxes? if not the refund is not taxable. if you did you got a tax benefit and now you owe the taxman.  you do get to deduct in 2023 as an itemized deduction the Virginia taxes you paid in 2023 for 2022 subject to the cap on deductible taxes on schedule A.