Star Wars is fantasy. Star Trek is science fiction.
The tech is never the point in Star Wars. Whenever they try to invoke science, it is given a mystical interpretation. That’s fantasy.
I would classify superhero movies as fantasy also. The science is generally only brought in to create an origin story, then never revisited. The kind of technology used by, say, Batman, is an extreme version of hardware store DIY.
It’s really hard to put even Iron Man into the science fiction realm, even though tech research is his whole raison d’etre. I can’t think of a defensible reason to keep Iron Man out of science fiction, but he so obviously does not belong there. Maybe this is exactly why we have superheroes/comics as a separate genre from both fantasy and science fiction.