Both Robbie Kay (Peter Pan) and David Anders (Dr Whale) had roles in the Heroes franchise. Anders played Takezo Kensei / Adam Monroe in season 2 of Heroes (2006), and Kay played Tommy Clarke in Heroes Reborn (2015).
The events of the flashback took place shortly after the events of the flashbacks in Welcome to Storybrooke (2013).