ftp_list_re = compile(
    '(?P<permissions>[d-][rwx-]{9})\\s{1,20}(?P<links>\\d{1,8})\\s{1,20}(?P<owner>[\\w-]{1,16})\\s{1,20}(?P<group>[\\w-]{1,16})\\s{1,20}(?P<size>\\d{1,16})\\s{1,20}(?P<month>[A-Za-z]{0,3})\\s{1,20}(?P<date>\\d{1,2})\\s{1,20}(?P<timeyear>[\\d:]{4,5})\\s{1,20}(?P<filename>[\\s\\w.-]+?)(?=[drwx-]{10}|$)'
    )
Python Regular expression Lookahead overshooting pattern