Output your shortcode from the plugin in additional fields - joomla 5

I want to output my shortcode from the plugin in additional fields. Unsuccessfully. Maybe there is someone who has encountered this and can tell you? Here is my plugin code:

defined('_JEXEC') or die;

class PlgContentShortcode extends JPlugin
{
    protected $autoloadLanguage = true;

    public function onContentPrepare($context, &$article, &$params, $limitstart)
    {
        $replacement1 = $this->replaceMyFunction1();
        $replacement2 = $this->replaceMyFunction2();
        
    
        $article->text = str_replace("[test]", $replacement1, $article->text);

        $article->jcFields = str_replace("[test2]", $replacement2, $article->jcFields);

        
        return true;
    }
    
    private function replaceMyFunction1()
    {
        $result = 'Test 1';
        return $result;
    }
    
    private function replaceMyFunction2()
    {
        $result = 'Test 2';
        return $result;
    }
}

PHP

defined('_JEXEC') or die;

class PlgContentShortcode extends JPlugin
{
    protected $autoloadLanguage = true;

    public function onContentPrepare($context, &$article, &$params, $limitstart)
    {
        // Replace shortcodes in article text and jcFields
        $article->text = $this->replaceShortcodes($article->text);
        $article->jcFields = $this->replaceShortcodes($article->jcFields);

        return true;
    }

    private function replaceShortcodes($content)
    {
        // Define your shortcode patterns here
        $shortcodePatterns = [
            '\[test\]' => $this->replaceMyFunction1(),
            '\[test2\]' => $this->replaceMyFunction2(),
        ];

        // Perform replacements
        return preg_replace(array_keys($shortcodePatterns), array_values($shortcodePatterns), $content);
    }

    private function replaceMyFunction1()
    {
        $result = 'Test 1';
        return $result;
    }

    private function replaceMyFunction2()
    {
        $result = 'Test 2';
        return $result;
    }
}