The passage in John 20 does not say that Thomas ever touched Jesus' wounds. It says that he insisted on touching Jesus' wounds before he believed, but the narrative suggests that although Jesus then invited him to touch the wounds, ultimately seeing Jesus was sufficient for Thomas to believe. Nothing says that Thomas ever touched him. Luke 24:39-40 also records Jesus showing his wounds to the disciples and inviting them to touch him, but doesn't say that they did touch him.
There are actually few specific reference to Jesus actually being touched by any of his disciples after the resurrection.
Matthew 28:9 says that the disciples touched his feet. John 20:17 says that Jesus told Mary Magdalene not to hold onto him, which implies physical contact although it isn't actually stated outright that Mary touched him.
The physicality of the resurrection is stated most plainly in the accounts of Jesus eating with his disciples. Disembodied spirits presumably do not eat.