Maryland Residency Status - Resident vs Non-Resident for Individual Living and Working in UK

Which is the correct 2023 residency status for a Maryland adult that studied abroad in UK to earn a master's degree in 2022, and now works and lives in the UK?  The tax filer earned all of their 2023 income in UK and does not own a home in MD (parents still do, same address as when they left for graduate school).  Would tax filing be under Maryland Resident (Form 502) or Non-Resident (Form 505)?  Person work in UK under a student visa and holds a Maryland driver's license.