Ms. Alegre obtained her Juris Doctor degree from the University of the Philippines College of Law in 2019, where she was cited for her Distinguished Performance as Office of Legal Aid Intern. She earned her Bachelor of Science degree in Industrial Engineering from the same university in 2015, where she graduated magna cum laude.
During her time as a law student, she worked as a Graduate Assistant for the University of the Philippines Institute of Maritime Affairs and Law of the Sea (UP-IMLOS).
She was admitted to the Philippine Bar in 2020.