But he does love playing with Hook (fighting Hook) as a distraction from the traumas within his own mind he doesn’t want to deal with.
Peter constantly seeks novelty, fun, and adventure. The question is, why? Part of the reason is that he’s a child and that’s what he loves to do. He hasn’t had his creativity wrung out of him yet.
But without going into too much detail, Peter also has a plethora of unpleasant memories which he has ENTIRELY BLOCKED OUT. He’s blocked them out so thoroughly that he legitimately forgot he did so. In order to keep that wall up he has to keep running. Stay distracted. And Captain Hook is just one of the many ways Peter does this.