Well I'm no fan of Python either but it doesn't describe itself as a scripting language (and neither does Ruby) so I think you're way off there.
And I dunno about Ruby being a better Python. It looks way worse to me. In particular the story for static type annotation seems pretty dire. The syntax is worse, it's less popular, and even slower!
I can believe the tooling is better though. Python's is abysmal (unless they officially adopt uv
- ray of hope there but I have zero faith the Python Devs would make such an obvious decision).
Generally a bad idea to use in-band signalling like that. They won't do anything weird but consider what happens if the actual data contains them.