You could try something like "Name matches (• index number).(anything) then Sort into subfolder (* index number) Folder" where •index number is a custom attribute you create which would match (number). What that does is match files, grabbing the first number before the dot. It then sorts it into a folder has that number then followed by " Folder".
Now, that rule should only apply for files at the top level. To enforce that, you want to add a condition like "Subfolder level is 0".
For the lower levels, you will need to add a rule to go into subfolders. Check the manual as there is a chapter there with the relevant rule.
Now that you can go into subfolders, create variations of the first rule above to match the second, third, etc. numbers. Remember to add the condition for "Subfolder level" as appropriate.