This is very cool.
Note that PEP 723 is also supported by pipx run:
https://pipx.pypa.io/latest/examples/#pipx-run-examples