import re

file = ['190.912.120.151 - skynet10001 [19/Jan/2012] "Temp"',
'221.143.119.260 - terminator002 [16/Feb/2021] "Temp 2"']
rx = re.compile(r'^(?P<IP>\d+(?:\.\d+){3})\s+\S+\s+(?P<Username>[a-z]+\d+)\s+\[(?P<Date>[^][]+)]\s+"(?P<Type>[^"]*)"')

def edata():
    results = []
    #with open("downloads/employeedata.txt", "r") as file:
    if not results: # this is just a stab, comment this line in real code, and uncomment the line above
        for line in file:
            match = rx.search(line)
            if match:
                results.append(match.groupdict())
    return results
    
print(edata())