diff --git a/shared/templates/grub2_bootloader_argument/oval.template b/shared/templates/grub2_bootloader_argument/oval.template
index ebcfbf891db..de394912a4f 100644
--- a/shared/templates/grub2_bootloader_argument/oval.template
+++ b/shared/templates/grub2_bootloader_argument/oval.template
@@ -324,23 +324,23 @@
/usr/lib/bootc/kargs.d/
^.*\.toml$
- ^kargs = \["([^\"]+)"\]$
+ ^kargs = \[([^\]]+)\]$
1
{{% if ARG_VALUE %}}
- ^(?:.*\s)?{{{ ESCAPED_ARG_NAME_VALUE }}}(?:\s.*)?$
+ ^.*"{{{ ESCAPED_ARG_NAME_VALUE }}}".*$
{{% else %}}
-
+
-
- ^(?:.*\s)?{{{ ARG_NAME }}}=
+ ^.*"{{{ ARG_NAME }}}=
{{% if IS_SUBSTRING == "true" %}}
\S*
{{% endif %}}
@@ -348,7 +348,7 @@
{{% if IS_SUBSTRING == "true" %}}
\S*
{{% endif %}}
- (?:\s.*)?$
+ ".*$