Inverse magnetic catalysis and regularization in the quark-meson model