I don't have access to my JF right now, but in the library dashboard I think there is an option (not checked by default) that says to prefer the files metadata over the file/folder names?
Jellyfin 10.10.5 (Docker)
Ubuntu 24.04 LTS
Intel i3 12100
Intel Arc A380
OS drive - SK Hynix P41 1TB
Storage
3x WD Red Pro 6TB CMR in RAIDZ1 (JF Library)