So I am playing on 1.17.1 and I'm trying to make a command block that when I use an ender pearl it would summon lightning along the trail and where it lands with me teleporting with a flash of lightning. The whole ender pearl is optional if there is a way to tp to a player with a flash of lightning too that'd be cool. The only way I've figured out how to do this makes it to where EVERY player can do this I want this to only work when I do it.
What I got so far:
execute at @e[type=minecraft:ender_pearl] run summon minecraft:lightning_bolt
(This makes it work with every player I want it to work with just me)