There are plenty of great apps out there that others mentioned to do this. I don’t know if this still applies to the newer iPods, but with my 5th Gen (it’s a dinosaur now, I know) I can just put the device in Disk Mode and navigate to a hidden folder on the drive that contains all the songs.
The songs are broken up (seemingly) randomly into subfolders and all of them are renamed with random permutations of four letters when originally transferred onto the iPod. The device uses its own index to find the songs. The attribute tags are still intact. Make sure you check off “Keep iTunes Media folder organized” and “Copy files to iTunes Media folder when adding to library” in the advanced tab in iTunes preferences to ensure that iTunes copies the files into its directory, and renames the files based on their attribute tags.
Just drag and drop the music files from the iPod onto iTunes and it will copy your files and rename them.
Once you’re sure all the media files on the iPod are on your computer, sync the iPod with your iTunes library. This will erase all the media from the device, tether it with your iTunes library, and copy the files onto the iPod again.
I apologize if this is antiquated, I actually have zero experience with the iPod touch, but this applies to every iPod I’ve ever used.