Tommy deeply regretted that it was he who had entered first.
Tommy was feeling a deep regret for being first.