When I was a teenager I was quite put off by coding because the class I was in felt really hostile & that was my only entry point - I only really found my love for webcrafting and learning to code when I became an adult. I'm lucky enough to still be friends with someone I shared that class with and she encouraged me to give it a try when I got curious about websites (she codes professionally and showed me her own website). Maybe one day you can be that encouraging person for someone you know! Don't worry if your friends aren't into it now, you'll find people who share your interests. The indie web does require dedication and skill building, but I think that's ultimately a good thing - you'll end up learning a lot from the people you know who are into it.
I think you get better at making friends in your 20s because you kinda have to start again in a new place, if you go to university or try a job for example. It was really intimidating at first, but going to places dedicated to your interests (like art school for me, or even just meetups near you for different crafts you'd like to try, if you can find any) can be great ways to find people you gel with. The city near me has some event spaces where people run various classes and meetups, I recommend looking for those and maybe going with a friend/family member. It can be hard to find this for specifically coding but I think there's some decent amount of overlap between indie web people and groups who meet to make things. I think it's worth your while to try new things if you can, anyway.
This is all dependent on how comfortable you are to go places and also how accessible your area is if you're not a rich adult guy, but it's a good way to actually meet new people with similar interests. I was very shy as a teen and would've been really uncomfortable going to places I've never been but, as an adult now looking back, it is absolutely worth trying.
In terms of trying to get current friends interested, there's not much you can do to force it but I would emphasise that the indie web allows a huge amount of control & customisation AND privacy. It's a great way to express yourself while also practicing a skill that will help you in life. I've got people interested before by showing them little tricks I've learned through HTML practice (like seeing when a page was last edited or bringing up the source code of a site, mega useful for research into any subject).
I hope you find some friends who are into the indie web! Keep up your own interest because it's a fantastic and creative place to be.