Unreal engine has a build in function that actually pauses the game when you need it too.
All you have to do is add a widget to your hud and on your button press event set the widget to visable.
Use a flip flop to make is hidden again while it’s already open.