If a circle and a square have the same perimeter, their areas will be different.
Pi times r-squared means Pi x radius x radius. It does NOT mean Pi x radius x 2.
Study and practice
Use these search terms to find additional resources:
how to find the area of a circle
circle area