I've been thinking about this for a few months now. It was said in KH2 that Pete was banished to some other dimension, but was freed by Maleficent. It's been confirmed that he appears in 358/2 Days, which could be when he was freed (maybe by Maleficent's death, but that's a theory for a...