This command:
lsb_release -cs
Doesn't work for Linux Mint 22.2What you want is UBUNTU_CODENAME from /etc/os-release (in the case of Linux Mint 22.2, it's "noble")
EDIT: Actually, I'm not even sure you can do $(command) inside /etc/apt/sources.list.d/*
Try again. I don't have mint instance to test, but should work now.