In reply to Siva91221:
If you look at the SV LRM Section 16.9.2 Repetition in sequences you’ll find that
— Consecutive repetition ( *[const_or_range_expression] ): Consecutive repetition specifies finitely many iterative matches of the operand sequence…
So your expression is not a constant or a range expression, based on this I’d say it is not allowed, but have you tried it out?
HTH,
-R