Hidden Fortress by Akira Kurosawa. It’s still enjoyable today IMO, and you can really see how some of the characters are a direct line to Star Wars characters.
If you watch enough old scifi and adventure movies, you'll learn to welcome the "so that's where Lucas took that idea from" feeling as an old friend. He lifted a lot.
That just is what all storytelling is. You mix and match characters, tropes, settings, and such from other stories and irl and mix it all together to get something "original"
pretty much everything is a rip off of everything.
A fistful of dollars which has become the archetypal western is also just a rip off of yojimbo im addition to the magnificent seven being a rip off the seven samurai which was also directed by kurosawa the same guy who made the movie star wars ripped off.