Text selection is particularly funny when you start getting really into it... For example RTL scripts select from right to left..except when you're selecting snippets that are LTR in within the RTL text such as numbers.
Then without a doubt various unicode quirks and features like combining characters etc will be downright impossible to ever get right.
I have some nice markdown rendering and phenomenally fast smooth scrolling - but I look at everything ahead of me, I don't even have text selection implemented yet, text wrapping and input cursor placement implementation wasn't that smooth to begin with. I have some amazing shader based animations, but the amount of effort that went into far exceed anything else I could have picked for a foundation.
I started with Typescript and kept running into performance issues - it was fast to build and easy to scale, but kept becoming harder to maintain. With Rust it feels hard to build, hard to scale, but it feels like scaling and maintaining might be starting to get easier. The performance ceiling is a night a day difference though.