A NextG Internet platform allows users to participate in many kinds of virtual events and communicate with avatars in a 3D virtual environment to perform many activities in this environment. Building an intrusion detection system is computationally challenging in the Metaverse because of its interactive nature as well as large number of user interactions that take place within virtual settings. This research proposes novel techniques in a Metaverse-based virtual environment in security monitoring using machine learning techniques. Here, security monitoring was carried out using reinforcement-federated regressive Gaussian neural networks. The metaverse virtual environment has been deployed, and its analysis is carried out using a cloud edge network with virtual software-defined infrastructure. Experimental analysis is carried out in terms of scalability, quality of service, latency, accuracy, and network integrity. The proposed model attained a scalability of 94%, a quality of service of 95%, an accuracy of 97%, a latency of 96%, and a network integrity of 93%.