Works here. Run it via File > Scripts > Other Script… and choose QR.jsx. It’ll pop up a simple dialog for you to enter the data and size. Takes a second or two to run and creates a new file when done.
If you want the JSX script to appear permanently in the Scripts menu, put it in Illustrator’s Scripts folder and restart AI. Finding this folder is an exercise in itself and modifying will likely require admin permissions, e.g. on Mac it’ll be something like:
/Applications/Adobe Illustrator 2023/Presets/en_GB/Scripts