Magnetic activity of ultracool dwarfs in the LAMOST DR11