After you file

So you got your 2017 (or prior) state refund in 2019?  Then you enter it on your 2019 federal return you do next year in 2020.