How to filter out this list, so that we are left with only a list of strings that are in yyyy-mm-dd format?
2021-11-11
2021-10-01
some_folder
some_other_folder
so that we end up with a list like so:
2021-11-11
2021-10-01
Also what if the list has a prefix?
root/2021-11-11
root/2021-10-01
user/some_folder
root/some_other_folder
and we wanted to end up with:
root/2021-11-11
root/2021-10-01