Regular versus chaotic dynamics in nuclear spectra near the ground state