Add to archive (Tar) files by mask

In Linux (Debian, Ubuntu) it's very cool to use bash and command line. Recently I wanted to add to archive approximately 3000 'jpg' files, which were named like 'test_2024_06_10 11:22:00'. I didn't want to select so many files manually, so I did it from command line. This is how my command line text looked like:
tar -czvf archive.tar.gz --files-from <(find /var/www/html/ -type f -name 'test_2024-*.jpg')
I implemented it in Debian, but also works in CentOS, Ubuntu.