Yep, I just had to select the folder again. Idk why it just stopped working one day when it was working fine previously, I wonder if it has to do with IF statements changing in iOS 18 (which this shortcut uses), now If statements can have multiple conditions.