it is lucky for you but the act itself doesn't come down to luck. It's a timing, but its not something that just happens because it was lucky, You getting peeked when you look away is a skill gap, you didn't have the discipline to hold the angle until you were no longer exposed. In that scenario, you getting killed is unlucky, but the act itself is not luck based.
Same thing for if they wideswing peek into your crosshair. That's on them for not clearing/jiggling the angle. That's not luck, that's just them being bad, and their bad play eventually got punished.
There are a lot of things in valorant that appear lucky, but are not, like the 2 things you said. I would say that the luck based things are: run and gun, spray transfer/spray (bullets are semi random), and randomly throwing util into the sky hoping it lands on somebody (no info, no actual lineup, just a guess and hope it lands, its like run and gun). Things that you cannot repeat reliably typically, but not always, fall into the luck category
Things like running into their stack, wallbanging with 0 info, pre molly/pre shock certain areas, etc are NOT LUCK. They feel unlucky/lucky because you didn't play correctly, or you did play correctly. If you run into their 5 stack, it's unlucky in the sense that it was a 50-50 chance, but you also could have just recon darted and got info right? If you wallbang something consistently, like ascent with odin, it will work out every so often because the other team doesn't play well. They control if they are walking into the spray path, that is on them and you are taking advantage of it. It feels lucky because you didn't have control of it, but the other team did, therefore it is not lucky. Using util on areas (old example is a sova double bounce dart on haven b mid to break tripwire) is the same thing. You can not control if they play their trip wire there or not and that appears lucky, but it is just a good/bad play on their end to move the trip somewhere else or keep it on mid.