Shaving?

So i shaved down there but it’s been a few days now and i’ve got red bumps down there like around my kinda groin area, it’s happened a few times after shaving and it’s so annoying and sometimes a bit painful. Does anyone have any tips to get rid of prevent them in the future? Thanks