Magento 2.4.4: Register is deprecated

I recently noticed the line $this->registry->register with register striked through. Mouseover displayed a message saying Register is deprecated. Could you please direct me to what is the alternative to this now? Thank you all. I am using the code below in the custom module.

    case "stripe_payments":
        // We need to set the current_order in registry, as StripeIntegration script info.php uses this registry.
        // Instantiate the StripeIntegration Info class after setting the registry.
        $this->registry->**register**('current_order', $order);
        $objectManager = MagentoFrameworkAppObjectManager::getInstance();
        $stripePayment = $objectManager->get('StripeIntegrationPaymentsBlockAdminhtmlPaymentInfo');

        // Now, we can make the calls to retrieve the Stripe details for the Credit card.
        $this->get_credit_card_payment_info($order_info, $stripePayment->getCard());
        $order_info["cc_name"] = $order->getBillingAddress()->getName();
        $order_info["cc_veri"] = $order->getPayment()->getTransactionId();
        break;