Sort multiple files from one folder based on prefix and timestamp

Job ID: 33709166

Budget: $10 – $30 USD

There is multiple 500+ files in one folder. All of files has same filename structure.
Example: 15-01_Decin_15-01_Decin_main_20220516053118.jpg
Prefix: 15-01_Decin
Timestamp: 20220516053118 (YYYYMMDDHHMMSS)

This file I need to move to folder 20220516(YYYYMMDD), which is subfolder of folder 15-01_Decin (prefix).
If niether folder or subfolder does not exist, they need to be created.

Example of filenames with different prefix.
15-01_Decin_15-01_Decin_main_20220516063407.jpg
15-01_Decin_15-01_Decin_main_20220516072747.jpg
15-02_Usti_15-02_Usti_main_20220516140050.jpg
15-02_Usti_15-02_Usti_main_20220516140436.jpg
15-04_Most_15-04_Most_main_20220516135710.jpg
15-04_Most_15-04_Most_main_20220516135726.jpg
15-04_Most_15-04_Most_main_20220516152052.jpg

I do prefer a solution with a windows CMD batch.
Related categories: Python Windows Desktop Programming