I guess if you never get your PhD, you can't regret that you did so. Perhaps the speaker is thinking of people who regret the years of study and deprivation while living as a student to obtain their PhD, only to find out that they are no better off than the people who didn't suffer as they did. In that case, perhaps they regret their time in getting their PhD.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.