I sadly don't remember much about this one - hoping someone else can shed some light or at least add details to help the search.
This was a foreign-language movie whose main character was a 20-something man in a period martial arts setting. He was a rogue / thief / mischief maker, or at the very least had some misapplied skill in martial arts. Through some plot mechanism, he gets spirited away to a modern city, and spends some time trying to adapt to the new things he's seeing. I'm pretty sure there is another modern-day character involved in this, probably female, but I don't remember anything specific. Everyone in the movie was Asian and spoke the native language of that country (not confident enough to be more specific than that).
The other part I remember is a scene at the end, where he comes riding down the highway on a moped / scooter to save the day. I think he also ends up riding off into the sunset on the same scooter at the end? The scooter is a bit of a signature, it was on the movie poster and everything.
In general, I know it wasn't a full parody - but there were definitely some comedy / slapstick moments. Recent-ish, definitely not older than 10-15 years. Almost certain I watched it on netflix, if that helps. I'm hoping "period martial arts man riding a moped" is unique enough for someone to point me in the right direction, because google is convinced I'm talking about Bruce Lee.
Another detail: The MC may have been a minor noble / official of some kind, I remember him wearing dark single-colored robes and a hat in this style while he was perpetrating antics and when he first came to the modern world: https://koreajoongangdaily.joins.com/jmnet/koreajoongangdaily/_data/photo/2019/02/18205313.jpg
Another detail 2: "From the past" was several centuries in the past. Not well-defined, but definitely feudal era. The MC had short- to medium-length hair (down to his neck at most), and no facial hair.
Another detail 3: I think the female counterpart is a civillian / office worker, she doesn't take part in the action much.
What it isn't: High fantasy - I'd put it more along the lines of Big Trouble in Little China (but more recent), or a Jackie Chan / Jet Li movie. More practical action than effects.