Edit: looks like this is wrong lol, that’s what I get for not verifying. So maybe $ does make more sense!
Original message:
I think I’d go with #.
The non-root user probably doesn’t have permission to run the sudo command as www-data user, but root does.
Unless you previously set permissions for the non-root user to sudo as www-data.
That’s already happening: https://www.bleepingcomputer.com/news/microsoft/new-windows-11-build-ships-with-more-rust-based-kernel-features/